Snack_PutSoundData, Snack_GetSoundData - transfer sound data between a
buffer and a Snack sound
Snack_PutSoundData(sound, position, buffer, nSamples)
Snack_GetSoundData(sound, position, buffer, nSamples)
Sound *sound (in)
int position (in)
void *buffer (in)
int nSamples (in)
Snack_PutSoundData transfers nSamples samples of sound data
buffer into a Snack sound at specified position.
The buffer data is expected to be in float or double format depending on
the precision of the Snack sound.
The sound must be of storage type SOUND_IN_MEMORY, i.e. the sound sample
data must reside in memory. Snack_GetSoundData transfers data from
the Snack sound to the buffer. These functions work both with memory resident
sounds and sounds linked to disk files (SOUND_IN_MEMORY and SOUND_IN_FILE).
The buffer data is returned in float or double format depending on the
precision of the Snack sound.