ACMX 2.139.0
Dual-Backend Real-Time GPU Video Synthesis
Loading...
Searching...
No Matches
AudioSettings Class Reference

Dialog for configuring live and file-based audio reactivity options. More...

#include <audio-window.hpp>

Inheritance diagram for AudioSettings:

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

Detailed Description

Dialog for configuring live and file-based audio reactivity options.

Definition at line 28 of file audio-window.hpp.

Constructor & Destructor Documentation

◆ AudioSettings()

Member Function Documentation

◆ getAudioBufferFrames()

int AudioSettings::getAudioBufferFrames ( ) const

Number of spectrum history frames requested.

Returns
Frame count for –enable-audio-buffers.

Definition at line 423 of file audio-window.cpp.

References audioBuffersSpinBox.

Referenced by MainWindow::menuAudioSettings().

◆ getAudioFilePath()

QString AudioSettings::getAudioFilePath ( ) const

Get the effective audio file or M3U playlist path.

Returns
The selected source path, or an empty string if none is selected.

Definition at line 411 of file audio-window.cpp.

References audioFileLineEdit, audioPlaylistLineEdit, and isAudioPlaylistEnabled().

Referenced by MainWindow::menuAudioSettings().

◆ getAudioPlaylistPath()

QString AudioSettings::getAudioPlaylistPath ( ) const

Get the selected M3U playlist path.

Definition at line 415 of file audio-window.cpp.

References audioPlaylistLineEdit.

◆ getAudioWarmRate()

double AudioSettings::getAudioWarmRate ( ) const

Audio startup warmup rate in 1/sec.

Returns
Warmup slope where 0.5 ~= 2 seconds to full intensity.

Definition at line 425 of file audio-window.cpp.

References audioWarmRateSpinBox.

Referenced by MainWindow::menuAudioSettings().

◆ getInputDeviceIndex()

int AudioSettings::getInputDeviceIndex ( ) const

Definition at line 405 of file audio-window.cpp.

References inputDeviceComboBox.

Referenced by MainWindow::menuAudioSettings().

◆ getNumberOfChannels()

int AudioSettings::getNumberOfChannels ( ) const

Definition at line 401 of file audio-window.cpp.

References channelSpinBox.

Referenced by MainWindow::menuAudioSettings().

◆ getOutputDeviceIndex()

int AudioSettings::getOutputDeviceIndex ( ) const

Definition at line 407 of file audio-window.cpp.

References outputDeviceComboBox.

Referenced by MainWindow::menuAudioSettings().

◆ getRecordVolume()

double AudioSettings::getRecordVolume ( ) const

Definition at line 399 of file audio-window.cpp.

References recordVolumeSlider.

Referenced by MainWindow::menuAudioSettings().

◆ getSensitivity()

double AudioSettings::getSensitivity ( ) const

Definition at line 403 of file audio-window.cpp.

References sensitivitySlider.

Referenced by MainWindow::menuAudioSettings().

◆ isAudioBuffersEnabled()

bool AudioSettings::isAudioBuffersEnabled ( ) const

Check whether spectrum history buffers are enabled.

Returns
true when –enable-audio-buffers should be emitted.

Definition at line 421 of file audio-window.cpp.

References audioBuffersCheckBox.

Referenced by MainWindow::menuAudioSettings().

◆ isAudioFileEnabled()

bool AudioSettings::isAudioFileEnabled ( ) const

Check whether a file or M3U audio source is selected and has a path.

Returns
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().

◆ isAudioPassThroughEnabled()

bool AudioSettings::isAudioPassThroughEnabled ( ) const

Definition at line 395 of file audio-window.cpp.

References audioPassThroughCheckBox.

Referenced by MainWindow::menuAudioSettings().

◆ isAudioPlaylistEnabled()

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().

◆ isAudioReactivityEnabled()

bool AudioSettings::isAudioReactivityEnabled ( ) const

Definition at line 393 of file audio-window.cpp.

References audioReactivityCheckBox.

Referenced by MainWindow::menuAudioSettings().

◆ isAudioRepeatEnabled()

bool AudioSettings::isAudioRepeatEnabled ( ) const

Check whether file audio should restart when it reaches the end.

Returns
true if the audio-repeat checkbox is checked.

Definition at line 419 of file audio-window.cpp.

References audioRepeatCheckBox.

Referenced by MainWindow::menuAudioSettings().

◆ isAudioTruncEnabled()

bool AudioSettings::isAudioTruncEnabled ( ) const

Check whether "stop when audio ends" is selected.

Returns
true if the audio-trunc checkbox is checked.

Definition at line 417 of file audio-window.cpp.

References audioTruncCheckBox.

Referenced by MainWindow::menuAudioSettings().

◆ isRecordAudioEnabled()

bool AudioSettings::isRecordAudioEnabled ( ) const

Definition at line 397 of file audio-window.cpp.

References recordAudioCheckBox.

Referenced by MainWindow::menuAudioSettings().

◆ loadUiState()

◆ populateAudioDevices()

void AudioSettings::populateAudioDevices ( )
private

Definition at line 291 of file audio-window.cpp.

References inputDeviceComboBox, and outputDeviceComboBox.

Referenced by AudioSettings().

◆ saveUiState()

◆ updateAudioSourceControls()

Member Data Documentation

◆ audioBuffersCheckBox

QCheckBox* AudioSettings::audioBuffersCheckBox
private

Enable spectrum history buffer CLI option.

Definition at line 91 of file audio-window.hpp.

Referenced by AudioSettings(), isAudioBuffersEnabled(), loadUiState(), and saveUiState().

◆ audioBuffersSpinBox

QSpinBox* AudioSettings::audioBuffersSpinBox
private

Number of spectrum history frames.

Definition at line 92 of file audio-window.hpp.

Referenced by AudioSettings(), getAudioBufferFrames(), loadUiState(), and saveUiState().

◆ audioFileBrowseButton

QPushButton* AudioSettings::audioFileBrowseButton
private

Opens a file dialog to choose an audio file.

Definition at line 84 of file audio-window.hpp.

Referenced by AudioSettings(), and updateAudioSourceControls().

◆ audioFileCheckBox

QCheckBox* AudioSettings::audioFileCheckBox
private

Toggle file-based audio input.

Definition at line 82 of file audio-window.hpp.

Referenced by AudioSettings(), isAudioFileEnabled(), loadUiState(), saveUiState(), and updateAudioSourceControls().

◆ audioFileLineEdit

QLineEdit* AudioSettings::audioFileLineEdit
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().

◆ audioPassThroughCheckBox

QCheckBox* AudioSettings::audioPassThroughCheckBox
private

◆ audioPlaylistBrowseButton

QPushButton* AudioSettings::audioPlaylistBrowseButton
private

Opens a file dialog to choose an M3U playlist.

Definition at line 87 of file audio-window.hpp.

Referenced by AudioSettings(), and updateAudioSourceControls().

◆ audioPlaylistCheckBox

QCheckBox* AudioSettings::audioPlaylistCheckBox
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().

◆ audioPlaylistEditButton

QPushButton* AudioSettings::audioPlaylistEditButton
private

Opens the M3U playlist editor.

Definition at line 88 of file audio-window.hpp.

Referenced by AudioSettings().

◆ audioPlaylistLineEdit

QLineEdit* AudioSettings::audioPlaylistLineEdit
private

◆ audioReactivityCheckBox

QCheckBox* AudioSettings::audioReactivityCheckBox
private

Definition at line 74 of file audio-window.hpp.

Referenced by AudioSettings(), isAudioReactivityEnabled(), loadUiState(), and saveUiState().

◆ audioRepeatCheckBox

QCheckBox* AudioSettings::audioRepeatCheckBox
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().

◆ audioTruncCheckBox

QCheckBox* AudioSettings::audioTruncCheckBox
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().

◆ audioWarmRateSpinBox

QDoubleSpinBox* AudioSettings::audioWarmRateSpinBox
private

Startup warmup rate for audio intensity ramp.

Definition at line 93 of file audio-window.hpp.

Referenced by AudioSettings(), getAudioWarmRate(), loadUiState(), and saveUiState().

◆ cancelButton

QPushButton* AudioSettings::cancelButton
private

Definition at line 95 of file audio-window.hpp.

Referenced by AudioSettings().

◆ channelSpinBox

QSpinBox* AudioSettings::channelSpinBox
private

◆ inputDeviceComboBox

QComboBox* AudioSettings::inputDeviceComboBox
private

◆ okButton

QPushButton* AudioSettings::okButton
private

Definition at line 94 of file audio-window.hpp.

Referenced by AudioSettings().

◆ outputDeviceComboBox

QComboBox* AudioSettings::outputDeviceComboBox
private

◆ recordAudioCheckBox

QCheckBox* AudioSettings::recordAudioCheckBox
private

Definition at line 76 of file audio-window.hpp.

Referenced by AudioSettings(), isRecordAudioEnabled(), loadUiState(), and saveUiState().

◆ recordVolumeSlider

QSlider* AudioSettings::recordVolumeSlider
private

Definition at line 77 of file audio-window.hpp.

Referenced by AudioSettings(), getRecordVolume(), loadUiState(), and saveUiState().

◆ sensitivitySlider

QSlider* AudioSettings::sensitivitySlider
private

Definition at line 79 of file audio-window.hpp.

Referenced by AudioSettings(), getSensitivity(), loadUiState(), and saveUiState().


The documentation for this class was generated from the following files: