mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +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
|
@ -37,6 +37,7 @@
|
|||
#include <LibGUI/Label.h>
|
||||
#include <LibGUI/MessageBox.h>
|
||||
#include <LibGUI/Slider.h>
|
||||
#include <LibGUI/Splitter.h>
|
||||
#include <LibGUI/ToolBar.h>
|
||||
#include <LibGUI/ToolBarContainer.h>
|
||||
#include <LibGUI/Window.h>
|
||||
|
@ -212,10 +213,14 @@ void SoundPlayerWidgetAdvancedView::open_file(StringView path)
|
|||
m_playback_progress_slider->set_max(loader->total_samples());
|
||||
m_playback_progress_slider->set_enabled(true);
|
||||
m_play_button->set_enabled(true);
|
||||
m_play_button->set_icon(*m_pause_icon);
|
||||
m_stop_button->set_enabled(true);
|
||||
m_playback_progress_slider->set_max(loader->total_samples());
|
||||
manager().set_loader(move(loader));
|
||||
set_has_loaded_file(true);
|
||||
set_loaded_file_samplerate(loader->sample_rate());
|
||||
set_loaded_filename(path);
|
||||
play();
|
||||
}
|
||||
|
||||
void SoundPlayerWidgetAdvancedView::set_nonlinear_volume_slider(bool nonlinear)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue