mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-24 07:46:42 +00:00
mixer: advance position before mixing
Sometimes, the play position in stream is behind the out stream, mostly because of timing issue. In this case, the mixer will produce invalid packets which in return will lead to looping on an invalid packet in the audio_drv. Issue #1666.
This commit is contained in:
parent
7d12bdc8bc
commit
a9569eb41e
@ -292,11 +292,11 @@ class Audio_out::Mixer : public Thread<1024 * sizeof(addr_t)>
|
||||
continue;
|
||||
}
|
||||
|
||||
_mix();
|
||||
|
||||
/* advance position of clients */
|
||||
_advance_position();
|
||||
|
||||
_mix();
|
||||
|
||||
if (!_left.stream()->empty())
|
||||
_wait_for_progress();
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user