signed char F_API FSOUND_DSP_MixBuffers(
void *destbuffer,
void *srcbuffer,
int len,
int freq,
int vol,
int pan,
unsigned int mode
);
destbuffer | Pointer to a buffer to have the data mixed into. |
srcbuffer | Pointer to the source buffer to be mixed in. |
len | Amount to mix in SAMPLES. |
freq | Speed to mix data to output buffer. Remember if you mix at a rate different than the output rate, the buffer lengths will have to be different to compensate. Ie if the output rate is 44100 and you supply a value of 88200 to FSOUND_DSP_MixBuffers, you will only need a destbuffer that is half the size of srcbuffer. If you supply a value of 22050 then you will need a destbuffer that is twice as big as srcbuffer. If they are both the same size then it will only mix half of the data. |
vol | volume scalar value of mix. Valid values are 0 (silence) to 255 (full volume). See FSOUND_SetVolume for more information. |
pan | pan value for data being mixed. Valid values are 0 (full left), 128 (middle), 255 (full right) and FSOUND_STEREOPAN. See FSOUND_SetPan for more information. |
mode | Bit settings to describe the source buffer. Valid values are found in FSOUND_MODES, but only 8/16bit and stereo/mono flags are interpreted, other flags are ignored. |