NAME
Snack_PutSoundData, Snack_GetSoundData - transfer sound data between a
buffer and a Snack sound
SYNOPSIS
#include <snack.h>
Snack_PutSoundData(sound, position, buffer, nBytes)
Snack_GetSoundData(sound, position, buffer, nBytes)
ARGUMENTS
Sound *sound (in)
int position (in)
void *buffer (in)
int nBytes (in)
DESCRIPTION
Snack_PutSoundData transfers nBytes bytes of sound data from
buffer
into a Snack sound at specified position.
The number of bytes is equal to the length of the created sound times
the number of channels times the number of bytes per sample (2 for LIN16
otherwise 1). Snack_GetSoundData transfers data from the Snack sound
to the buffer.