Actions
Emulator Issues #1689
closed(FIX) Linux Build - Alsa Sound (choppy sound problem)
% Done:
0%
Operating system:
N/A
Issue type:
Other
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:
Description
- AlsaSoundStream.cpp -
...
// Called on audio thread.
void AlsaSound::SoundLoop()
{
AlsaInit();
while (!thread_data)
{
//int frames_to_deliver = 512;
int frames_to_deliver = 4096;
m_mixer->Mix(reinterpret_cast<short *>(mix_buffer), frames_to_deliver);
int rc = snd_pcm_writei(handle, mix_buffer, frames_to_deliver);
if (rc == -EPIPE)
{
// Underrun
snd_pcm_prepare(handle);
}
else if (rc < 0)
{
ERROR_LOG(AUDIO, "writei fail: %s", snd_strerror(rc));
}
}
AlsaShutdown();
thread_data = 2;
}
...
Updated by Anonymous over 13 years ago
- Status changed from New to Fixed
Ignore this...Status:Verified was removed, changing to Fixed
Actions