mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
SoundPlayer: Add samplerate variable to visualizations
also fix conflict
This commit is contained in:
parent
2e28b8ebcc
commit
fd126578d9
Notes:
sideshowbarker
2024-07-18 21:02:37 +09:00
Author: https://github.com/ngc6302h
Commit: fd126578d9
Pull-request: https://github.com/SerenityOS/serenity/pull/5878
Reviewed-by: https://github.com/Dexesttp
Reviewed-by: https://github.com/RealKC
Reviewed-by: https://github.com/alimpfard
12 changed files with 51 additions and 311 deletions
|
@ -172,13 +172,10 @@ void PlaybackManager::next_buffer()
|
|||
remove_dead_buffers();
|
||||
if (!m_next_buffer) {
|
||||
if (!m_connection->get_remaining_samples() && !m_paused) {
|
||||
dbgln("Exhausted samples :^)");
|
||||
if (m_loop)
|
||||
seek(0);
|
||||
else
|
||||
stop();
|
||||
stop();
|
||||
if (on_finished_playing)
|
||||
on_finished_playing();
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue