Dialog for configuring live and file-based audio reactivity options. More...
#include <audio-window.hpp>
Public Member Functions | |
| AudioSettings (QWidget *parent=nullptr) | |
| int | getAudioBufferFrames () const |
| Number of spectrum history frames requested. | |
| QString | getAudioFilePath () const |
| Get the effective audio file or M3U playlist path. | |
| QString | getAudioPlaylistPath () const |
| Get the selected M3U playlist path. | |
| double | getAudioWarmRate () const |
| Audio startup warmup rate in 1/sec. | |
| int | getInputDeviceIndex () const |
| int | getNumberOfChannels () const |
| int | getOutputDeviceIndex () const |
| double | getRecordVolume () const |
| double | getSensitivity () const |
| bool | isAudioBuffersEnabled () const |
| Check whether spectrum history buffers are enabled. | |
| bool | isAudioFileEnabled () const |
| Check whether a file or M3U audio source is selected and has a path. | |
| bool | isAudioPassThroughEnabled () const |
| bool | isAudioPlaylistEnabled () const |
| Check whether the M3U playlist overrides the single audio file. | |
| bool | isAudioReactivityEnabled () const |
| bool | isAudioRepeatEnabled () const |
| Check whether file audio should restart when it reaches the end. | |
| bool | isAudioTruncEnabled () const |
| Check whether "stop when audio ends" is selected. | |
| bool | isRecordAudioEnabled () const |
Private Member Functions | |
| void | loadUiState () |
| void | populateAudioDevices () |
| void | saveUiState () |
| void | updateAudioSourceControls () |
Private Attributes | |
| QCheckBox * | audioBuffersCheckBox |
| Enable spectrum history buffer CLI option. | |
| QSpinBox * | audioBuffersSpinBox |
| Number of spectrum history frames. | |
| QPushButton * | audioFileBrowseButton |
| Opens a file dialog to choose an audio file. | |
| QCheckBox * | audioFileCheckBox |
| Toggle file-based audio input. | |
| QLineEdit * | audioFileLineEdit |
| Displays the selected audio file path. | |
| QCheckBox * | audioPassThroughCheckBox |
| QPushButton * | audioPlaylistBrowseButton |
| Opens a file dialog to choose an M3U playlist. | |
| QCheckBox * | audioPlaylistCheckBox |
| Use an M3U playlist instead of the audio file. | |
| QPushButton * | audioPlaylistEditButton |
| Opens the M3U playlist editor. | |
| QLineEdit * | audioPlaylistLineEdit |
| Displays the selected M3U playlist path. | |
| QCheckBox * | audioReactivityCheckBox |
| QCheckBox * | audioRepeatCheckBox |
| Restart playback when the audio file ends. | |
| QCheckBox * | audioTruncCheckBox |
| Stop playback when the audio file ends. | |
| QDoubleSpinBox * | audioWarmRateSpinBox |
| Startup warmup rate for audio intensity ramp. | |
| QPushButton * | cancelButton |
| QSpinBox * | channelSpinBox |
| QComboBox * | inputDeviceComboBox |
| QPushButton * | okButton |
| QComboBox * | outputDeviceComboBox |
| QCheckBox * | recordAudioCheckBox |
| QSlider * | recordVolumeSlider |
| QSlider * | sensitivitySlider |
Dialog for configuring live and file-based audio reactivity options.
Definition at line 28 of file audio-window.hpp.
|
explicit |
Definition at line 10 of file audio-window.cpp.
References acmx2::applyCustomStyleIfEnabled(), audioBuffersCheckBox, audioBuffersSpinBox, audioFileBrowseButton, audioFileCheckBox, audioFileLineEdit, audioPassThroughCheckBox, audioPlaylistBrowseButton, audioPlaylistCheckBox, audioPlaylistEditButton, audioPlaylistLineEdit, audioReactivityCheckBox, audioRepeatCheckBox, audioTruncCheckBox, audioWarmRateSpinBox, cancelButton, channelSpinBox, inputDeviceComboBox, loadUiState(), okButton, outputDeviceComboBox, AudioPlaylistDialog::playlistPath(), populateAudioDevices(), recordAudioCheckBox, recordVolumeSlider, saveUiState(), sensitivitySlider, and updateAudioSourceControls().
| int AudioSettings::getAudioBufferFrames | ( | ) | const |
Number of spectrum history frames requested.
Definition at line 423 of file audio-window.cpp.
References audioBuffersSpinBox.
Referenced by MainWindow::menuAudioSettings().
| QString AudioSettings::getAudioFilePath | ( | ) | const |
Get the effective audio file or M3U playlist path.
Definition at line 411 of file audio-window.cpp.
References audioFileLineEdit, audioPlaylistLineEdit, and isAudioPlaylistEnabled().
Referenced by MainWindow::menuAudioSettings().
| QString AudioSettings::getAudioPlaylistPath | ( | ) | const |
Get the selected M3U playlist path.
Definition at line 415 of file audio-window.cpp.
References audioPlaylistLineEdit.
| double AudioSettings::getAudioWarmRate | ( | ) | const |
Audio startup warmup rate in 1/sec.
Definition at line 425 of file audio-window.cpp.
References audioWarmRateSpinBox.
Referenced by MainWindow::menuAudioSettings().
| int AudioSettings::getInputDeviceIndex | ( | ) | const |
Definition at line 405 of file audio-window.cpp.
References inputDeviceComboBox.
Referenced by MainWindow::menuAudioSettings().
| int AudioSettings::getNumberOfChannels | ( | ) | const |
Definition at line 401 of file audio-window.cpp.
References channelSpinBox.
Referenced by MainWindow::menuAudioSettings().
| int AudioSettings::getOutputDeviceIndex | ( | ) | const |
Definition at line 407 of file audio-window.cpp.
References outputDeviceComboBox.
Referenced by MainWindow::menuAudioSettings().
| double AudioSettings::getRecordVolume | ( | ) | const |
Definition at line 399 of file audio-window.cpp.
References recordVolumeSlider.
Referenced by MainWindow::menuAudioSettings().
| double AudioSettings::getSensitivity | ( | ) | const |
Definition at line 403 of file audio-window.cpp.
References sensitivitySlider.
Referenced by MainWindow::menuAudioSettings().
| bool AudioSettings::isAudioBuffersEnabled | ( | ) | const |
Check whether spectrum history buffers are enabled.
true when –enable-audio-buffers should be emitted. Definition at line 421 of file audio-window.cpp.
References audioBuffersCheckBox.
Referenced by MainWindow::menuAudioSettings().
| bool AudioSettings::isAudioFileEnabled | ( | ) | const |
Check whether a file or M3U audio source is selected and has a path.
true when either mutually exclusive source is ready. Definition at line 409 of file audio-window.cpp.
References audioFileCheckBox, audioFileLineEdit, audioPlaylistCheckBox, and audioPlaylistLineEdit.
Referenced by MainWindow::menuAudioSettings().
| bool AudioSettings::isAudioPassThroughEnabled | ( | ) | const |
Definition at line 395 of file audio-window.cpp.
References audioPassThroughCheckBox.
Referenced by MainWindow::menuAudioSettings().
| bool AudioSettings::isAudioPlaylistEnabled | ( | ) | const |
Check whether the M3U playlist overrides the single audio file.
Definition at line 413 of file audio-window.cpp.
References audioPlaylistCheckBox, and audioPlaylistLineEdit.
Referenced by getAudioFilePath().
| bool AudioSettings::isAudioReactivityEnabled | ( | ) | const |
Definition at line 393 of file audio-window.cpp.
References audioReactivityCheckBox.
Referenced by MainWindow::menuAudioSettings().
| bool AudioSettings::isAudioRepeatEnabled | ( | ) | const |
Check whether file audio should restart when it reaches the end.
true if the audio-repeat checkbox is checked. Definition at line 419 of file audio-window.cpp.
References audioRepeatCheckBox.
Referenced by MainWindow::menuAudioSettings().
| bool AudioSettings::isAudioTruncEnabled | ( | ) | const |
Check whether "stop when audio ends" is selected.
true if the audio-trunc checkbox is checked. Definition at line 417 of file audio-window.cpp.
References audioTruncCheckBox.
Referenced by MainWindow::menuAudioSettings().
| bool AudioSettings::isRecordAudioEnabled | ( | ) | const |
Definition at line 397 of file audio-window.cpp.
References recordAudioCheckBox.
Referenced by MainWindow::menuAudioSettings().
|
private |
Definition at line 218 of file audio-window.cpp.
References audioBuffersCheckBox, audioBuffersSpinBox, audioFileCheckBox, audioFileLineEdit, audioPassThroughCheckBox, audioPlaylistCheckBox, audioPlaylistLineEdit, audioReactivityCheckBox, audioRepeatCheckBox, audioTruncCheckBox, audioWarmRateSpinBox, channelSpinBox, inputDeviceComboBox, outputDeviceComboBox, recordAudioCheckBox, recordVolumeSlider, and sensitivitySlider.
Referenced by AudioSettings().
|
private |
Definition at line 291 of file audio-window.cpp.
References inputDeviceComboBox, and outputDeviceComboBox.
Referenced by AudioSettings().
|
private |
Definition at line 251 of file audio-window.cpp.
References audioBuffersCheckBox, audioBuffersSpinBox, audioFileCheckBox, audioFileLineEdit, audioPassThroughCheckBox, audioPlaylistCheckBox, audioPlaylistLineEdit, audioReactivityCheckBox, audioRepeatCheckBox, audioTruncCheckBox, audioWarmRateSpinBox, channelSpinBox, inputDeviceComboBox, outputDeviceComboBox, recordAudioCheckBox, recordVolumeSlider, and sensitivitySlider.
Referenced by AudioSettings().
|
private |
Definition at line 272 of file audio-window.cpp.
References audioFileBrowseButton, audioFileCheckBox, audioFileLineEdit, audioPassThroughCheckBox, audioPlaylistBrowseButton, audioPlaylistCheckBox, audioPlaylistLineEdit, audioRepeatCheckBox, audioTruncCheckBox, channelSpinBox, inputDeviceComboBox, and outputDeviceComboBox.
Referenced by AudioSettings().
|
private |
Enable spectrum history buffer CLI option.
Definition at line 91 of file audio-window.hpp.
Referenced by AudioSettings(), isAudioBuffersEnabled(), loadUiState(), and saveUiState().
|
private |
Number of spectrum history frames.
Definition at line 92 of file audio-window.hpp.
Referenced by AudioSettings(), getAudioBufferFrames(), loadUiState(), and saveUiState().
|
private |
Opens a file dialog to choose an audio file.
Definition at line 84 of file audio-window.hpp.
Referenced by AudioSettings(), and updateAudioSourceControls().
|
private |
Toggle file-based audio input.
Definition at line 82 of file audio-window.hpp.
Referenced by AudioSettings(), isAudioFileEnabled(), loadUiState(), saveUiState(), and updateAudioSourceControls().
|
private |
Displays the selected audio file path.
Definition at line 83 of file audio-window.hpp.
Referenced by AudioSettings(), getAudioFilePath(), isAudioFileEnabled(), loadUiState(), saveUiState(), and updateAudioSourceControls().
|
private |
Definition at line 75 of file audio-window.hpp.
Referenced by AudioSettings(), isAudioPassThroughEnabled(), loadUiState(), saveUiState(), and updateAudioSourceControls().
|
private |
Opens a file dialog to choose an M3U playlist.
Definition at line 87 of file audio-window.hpp.
Referenced by AudioSettings(), and updateAudioSourceControls().
|
private |
Use an M3U playlist instead of the audio file.
Definition at line 85 of file audio-window.hpp.
Referenced by AudioSettings(), isAudioFileEnabled(), isAudioPlaylistEnabled(), loadUiState(), saveUiState(), and updateAudioSourceControls().
|
private |
Opens the M3U playlist editor.
Definition at line 88 of file audio-window.hpp.
Referenced by AudioSettings().
|
private |
Displays the selected M3U playlist path.
Definition at line 86 of file audio-window.hpp.
Referenced by AudioSettings(), getAudioFilePath(), getAudioPlaylistPath(), isAudioFileEnabled(), isAudioPlaylistEnabled(), loadUiState(), saveUiState(), and updateAudioSourceControls().
|
private |
Definition at line 74 of file audio-window.hpp.
Referenced by AudioSettings(), isAudioReactivityEnabled(), loadUiState(), and saveUiState().
|
private |
Restart playback when the audio file ends.
Definition at line 90 of file audio-window.hpp.
Referenced by AudioSettings(), isAudioRepeatEnabled(), loadUiState(), saveUiState(), and updateAudioSourceControls().
|
private |
Stop playback when the audio file ends.
Definition at line 89 of file audio-window.hpp.
Referenced by AudioSettings(), isAudioTruncEnabled(), loadUiState(), saveUiState(), and updateAudioSourceControls().
|
private |
Startup warmup rate for audio intensity ramp.
Definition at line 93 of file audio-window.hpp.
Referenced by AudioSettings(), getAudioWarmRate(), loadUiState(), and saveUiState().
|
private |
Definition at line 95 of file audio-window.hpp.
Referenced by AudioSettings().
|
private |
Definition at line 78 of file audio-window.hpp.
Referenced by AudioSettings(), getNumberOfChannels(), loadUiState(), saveUiState(), and updateAudioSourceControls().
|
private |
Definition at line 80 of file audio-window.hpp.
Referenced by AudioSettings(), getInputDeviceIndex(), loadUiState(), populateAudioDevices(), saveUiState(), and updateAudioSourceControls().
|
private |
Definition at line 94 of file audio-window.hpp.
Referenced by AudioSettings().
|
private |
Definition at line 81 of file audio-window.hpp.
Referenced by AudioSettings(), getOutputDeviceIndex(), loadUiState(), populateAudioDevices(), saveUiState(), and updateAudioSourceControls().
|
private |
Definition at line 76 of file audio-window.hpp.
Referenced by AudioSettings(), isRecordAudioEnabled(), loadUiState(), and saveUiState().
|
private |
Definition at line 77 of file audio-window.hpp.
Referenced by AudioSettings(), getRecordVolume(), loadUiState(), and saveUiState().
|
private |
Definition at line 79 of file audio-window.hpp.
Referenced by AudioSettings(), getSensitivity(), loadUiState(), and saveUiState().