#define _MIXER_DEFAULT_CHANNELS 2
#define _MIXER_DEFAULT_CHUNKSIZE 4096
int queue_get(BufferQueue *q, BufferNode **pkt1)
//initialize the mixer audio subsystem, code cribbed from mixer.c
-int soundInit (int freq, int size, int channels, int chunksize
, SDL_cond *cond)
+int soundInit (int freq, int size, int channels, int chunksize)
/* A bug in sdl_mixer where the stereo is reversed for 8 bit.
So we use this CPU hogging effect to reverse it for us.
Hopefully this bug is fixed in SDL_mixer 1.2.9
mix->alen = (Uint32 )len;
- int ret = Mix_PlayChannel(-1, mix, 0);
+ int ret = Mix_PlayChannel(s_channel, mix, 0);
//if buffer was allocated, we gotta clean it up.