Commit 4270bc2a authored by Sam Lantinga's avatar Sam Lantinga

Thilo helped me track down the audio issue with 22050 hz stereo sound. Yay!

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404088
parent a7c0a316
......@@ -317,7 +317,7 @@ static void ALSA_PlayAudio(_THIS)
int status;
snd_pcm_uframes_t frames_left;
const Uint8 *sample_buf = (const Uint8 *) mixbuf;
const int sample_size = ((int) (this->spec.format & 0xFF)) / 8;
const int frame_size = (((int) (this->spec.format & 0xFF)) / 8) * this->spec.channels;
swizzle_alsa_channels(this);
......@@ -346,7 +346,7 @@ static void ALSA_PlayAudio(_THIS)
}
continue;
}
sample_buf += status * sample_size;
sample_buf += status * frame_size;
frames_left -= status;
}
}
......
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