Commit 5409db51 authored by Ryan C. Gordon's avatar Ryan C. Gordon

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

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404057
parent c865dbf8
...@@ -308,7 +308,7 @@ static void ALSA_PlayAudio(_THIS) ...@@ -308,7 +308,7 @@ static void ALSA_PlayAudio(_THIS)
snd_pcm_uframes_t frames_left; snd_pcm_uframes_t frames_left;
const Uint8 *sample_buf = (const Uint8 *) mixbuf; const Uint8 *sample_buf = (const Uint8 *) mixbuf;
const int frame_size = ( ((int) this->spec.channels) * const int frame_size = ( ((int) this->spec.channels) *
((int) (this->spec.format & 0xFF)) ); (((int) (this->spec.format & 0xFF)) / 8) );
swizzle_alsa_channels(this); swizzle_alsa_channels(this);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment