Item MakeSample( uint32 NumBytes, TagArg *TagList )
CreateSample()
instead. This function makes a sample without loading data from disk. It allocates a sample data buffer of the specified size and then defines that buffer as a sample using the parameters specified in the tag argument list. A task can write any data it cares to in the sample buffer; a sampled sound instrument can then play that data from the buffer.
When you finish with the sample, you should call UnloadSample()
to deallocate its resources.
See the SetAudioItemInfo()
and the Music Programmer's Guide for a list of supported tags.
See the test program ta_makesample.c for an example.
SetAudioItemInfo()
and the description of MakeSample()
in the Music Programmer's Guide.
CreateSample()
instead.
UnloadSample
(), CreateSample()