AlsaSound: Applied the fix from issue 1689 makes DSP better

thanks darumo


git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4615 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee 2009-11-27 11:52:29 +00:00
parent fddab016fa
commit 3e49599a33
1 changed files with 2 additions and 1 deletions

View File

@ -64,7 +64,8 @@ void AlsaSound::SoundLoop()
AlsaInit(); AlsaInit();
while (!thread_data) while (!thread_data)
{ {
int frames_to_deliver = 512; // nakee: What is the optimal value?
int frames_to_deliver = 4096;
m_mixer->Mix(reinterpret_cast<short *>(mix_buffer), frames_to_deliver); m_mixer->Mix(reinterpret_cast<short *>(mix_buffer), frames_to_deliver);
int rc = snd_pcm_writei(handle, mix_buffer, frames_to_deliver); int rc = snd_pcm_writei(handle, mix_buffer, frames_to_deliver);
if (rc == -EPIPE) if (rc == -EPIPE)