LoadSample()
to load an AIFF sample into memory.
You can also load samples of other formats into memory yourself and turn them into 3DO sample items by calling CreateSample()
.
LoadInstrument()
to l
oad a DSP instrument that can play that sample. You can determine the appropriate instrument name by looking in the table at the beginning of Instrument Templates, in the 3DO Music and Audio Programmer's Reference or by calling SelectSamplePlayer()
.
AttachSample()
to attach the sample to the instrument.
You can use the same sample on multiple instruments, or you can use multiple samples on one instrument.
StartInstrument()
to start playing the sample.
The instrument starts whatever sample is attached to it.
ReleaseInstrument()
to stop a sample that is looping,
See Preparing Instruments, and Playing Instruments, for complete programming details.
For an example of playing a sound, see the example program playsample.c.