mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:07:35 +00:00
AudioServer: Add a hack to make audio "just work" on HDA for now
This should be fixed properly, but we have decided that a quick hack is fine so that audio "just works" for most people.
This commit is contained in:
parent
03fac609ee
commit
e0dce41ddf
1 changed files with 4 additions and 1 deletions
|
@ -57,7 +57,10 @@ void Mixer::mix()
|
|||
{
|
||||
Threading::MutexLocker const locker(m_pending_mutex);
|
||||
// While we have nothing to mix, wait on the condition.
|
||||
m_mixing_necessary.wait_while([this, &active_mix_queues]() { return m_pending_mixing.is_empty() && active_mix_queues.is_empty(); });
|
||||
// HACK: HDA is currently broken when we don't constantly feed it a buffer stream.
|
||||
// Commenting out this line makes it "just work" for the time being. Please add this line back once the issue is fixed.
|
||||
// See:
|
||||
// m_mixing_necessary.wait_while([this, &active_mix_queues]() { return m_pending_mixing.is_empty() && active_mix_queues.is_empty(); });
|
||||
if (!m_pending_mixing.is_empty()) {
|
||||
active_mix_queues.extend(move(m_pending_mixing));
|
||||
m_pending_mixing.clear();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue