# HG changeset patch # User Ryan C. Gordon # Date 1255335516 0 # Node ID c9a1de1eda57c26ac2f4f3521372f9467fb78cb6 # Parent 33d3066302967fbede25923ad10bcd1c61bce11d Whoops, need to convert from bits to bytes for frame size. diff -r 33d306630296 -r c9a1de1eda57 src/audio/alsa/SDL_alsa_audio.c --- a/src/audio/alsa/SDL_alsa_audio.c Mon Oct 12 08:06:40 2009 +0000 +++ b/src/audio/alsa/SDL_alsa_audio.c Mon Oct 12 08:18:36 2009 +0000 @@ -308,7 +308,7 @@ 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);