SoundSpooler *ssplCreateSoundSpooler ( int32 NumBuffers, Item SamplerIns )
ssplCreateSoundSpooler()
creates a SoundSpooler data structure and initializes it. Call ssplCreateSoundSpooler()
first to create a SoundSpooler data structure.
This function allocates the requested number of SoundBufferNodes for the SoundSpooler. SoundBufferNodes simply carry pointers to sample data; they do not have any embedded sample data. The pointer and length of each sample buffer is stored into a SoundBufferNode with ssplSetBufferAddressLength()
prior to enqueuing it with ssplSendBuffer()
.
ScanSample()
and SelectSamplePlayer()
to determine the best instrument to use for a given sample format. You will need to connect this instrument to a mixer or a direct out.dsp to hear the sound. This setting can be changed after creation by using ssplAttachInstrument()
. Also, this can be 0, if you call ssplAttachInstrument
() before actually starting the spooler.
ssplDeleteSoundSpooler
(), ssplStartSpooler(), ssplSendBuffer(), ssplProcessSignals()