mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:37:35 +00:00
SoundPlayer: Clear client buffer when playback is stopped
Previously we would not clear the client buffer of the ConnectionToServer when playback was stopped. This would cause old samples to be buffered and played when playback was restarted. With this commit we now perform this clearing of the client buffer correctly.
This commit is contained in:
parent
5563ebab5a
commit
23bc306f99
1 changed files with 1 additions and 0 deletions
|
@ -37,6 +37,7 @@ void PlaybackManager::set_loader(NonnullRefPtr<Audio::Loader>&& loader)
|
|||
void PlaybackManager::stop()
|
||||
{
|
||||
set_paused(true);
|
||||
m_connection->clear_client_buffer();
|
||||
m_connection->async_clear_buffer();
|
||||
|
||||
if (m_loader)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue