Don't you ever asked yourself what the parameter "3" was used for ? It was not picked out of nowhere ;-)
here's the function prototype:
ASND_SetVoice(s32 voice, s32 format, s32 pitch,s32 delay, void *snd, s32 size_snd, s32 volume_l, s32 volume_r, ASNDVoiceCallback callback);
as you can see the 2nd parameter is the voice format, defined like this in asndlib.h:
// SND_SetVoice format
#define VOICE_MONO_8BIT 0
#define VOICE_MONO_16BIT 1
#define VOICE_STEREO_8BIT 2
#define VOICE_STEREO_16BIT 3
3 means your 8 bits stereo samples will be treated like stereo 16 bits samples, meanings only half of the given number of samples will be played, and off course, a samplerate divided by 2.
Edited 1 time(s). Last edit at 06/19/2009 10:31PM by ekeeke.