Project

General

Profile

Actions

Emulator Issues #1689

closed

(FIX) Linux Build - Alsa Sound (choppy sound problem)

Added by darumo about 15 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
% 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;
}

...

Actions #1

Updated by Anonymous about 15 years ago

  • Issue type set to Other
Actions #3

Updated by nakeee almost 15 years ago

committed
Thanks for the patch:)

Actions #4

Updated by Anonymous over 13 years ago

  • Status changed from New to Fixed

Ignore this...Status:Verified was removed, changing to Fixed

Actions

Also available in: Atom PDF