Whoops, need to convert from bits to bytes for frame size.

--HG--
branch : SDL-1.2
This commit is contained in:
Ryan C. Gordon
2009-10-12 08:18:36 +00:00
parent c14c3e1851
commit fdf24e0516

View File

@@ -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);