Added speed slider. Minor improvements
This commit is contained in:
@@ -24,7 +24,10 @@ private:
|
||||
QPushButton* m_refresh_button = nullptr;
|
||||
QPushButton* m_folder_button = nullptr;
|
||||
QLabel* m_label = nullptr;
|
||||
QLabel* m_volume_label = nullptr;
|
||||
QSlider* m_volume_slider = nullptr;
|
||||
QLabel* m_speed_label = nullptr;
|
||||
QSlider* m_speed_slider = nullptr;
|
||||
QListWidget* m_sound_list = nullptr;
|
||||
QPushButton* m_stop_button = nullptr;
|
||||
QCheckBox* m_monitor_toggle = nullptr;
|
||||
@@ -35,6 +38,7 @@ private:
|
||||
|
||||
std::vector<Pipewire::Node> m_apps;
|
||||
QString m_audio_directory;
|
||||
float m_speed = 1.0f;
|
||||
|
||||
void on_app_selected(int index);
|
||||
void refresh_apps();
|
||||
@@ -42,5 +46,6 @@ private:
|
||||
void play_sound();
|
||||
void stop_sounds();
|
||||
void set_volume(int value);
|
||||
void set_speed(int value);
|
||||
void toggle_monitor(Qt::CheckState state);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user