From 80d2a252de2446e314354f7cd7c85d98034f1ea6 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 12 Oct 2009 08:18:36 +0000 Subject: [PATCH] Whoops, need to convert from bits to bytes for frame size. --- src/audio/alsa/SDL_alsa_audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audio/alsa/SDL_alsa_audio.c b/src/audio/alsa/SDL_alsa_audio.c index 6ada9f659..55990971e 100644 --- a/src/audio/alsa/SDL_alsa_audio.c +++ b/src/audio/alsa/SDL_alsa_audio.c @@ -308,7 +308,7 @@ static void ALSA_PlayAudio(_THIS) snd_pcm_uframes_t frames_left; const Uint8 *sample_buf = (const Uint8 *) mixbuf; const int frame_size = ( ((int) this->spec.channels) * - ((int) (this->spec.format & 0xFF)) ); + (((int) (this->spec.format & 0xFF)) / 8) ); swizzle_alsa_channels(this);