10#ifndef AUDIOSETTINGS_HPP
11#define AUDIOSETTINGS_HPP
16#include <QDoubleSpinBox>
QString getAudioFilePath() const
Get the effective audio file or M3U playlist path.
QPushButton * audioPlaylistEditButton
Opens the M3U playlist editor.
int getNumberOfChannels() const
QSpinBox * audioBuffersSpinBox
Number of spectrum history frames.
QCheckBox * audioReactivityCheckBox
QPushButton * cancelButton
QComboBox * inputDeviceComboBox
double getSensitivity() const
QPushButton * audioPlaylistBrowseButton
Opens a file dialog to choose an M3U playlist.
QPushButton * audioFileBrowseButton
Opens a file dialog to choose an audio file.
int getAudioBufferFrames() const
Number of spectrum history frames requested.
QCheckBox * audioRepeatCheckBox
Restart playback when the audio file ends.
QCheckBox * audioTruncCheckBox
Stop playback when the audio file ends.
QCheckBox * recordAudioCheckBox
bool isAudioFileEnabled() const
Check whether a file or M3U audio source is selected and has a path.
int getInputDeviceIndex() const
bool isAudioReactivityEnabled() const
QLineEdit * audioFileLineEdit
Displays the selected audio file path.
bool isRecordAudioEnabled() const
QString getAudioPlaylistPath() const
Get the selected M3U playlist path.
QCheckBox * audioPassThroughCheckBox
bool isAudioPlaylistEnabled() const
Check whether the M3U playlist overrides the single audio file.
bool isAudioPassThroughEnabled() const
bool isAudioRepeatEnabled() const
Check whether file audio should restart when it reaches the end.
AudioSettings(QWidget *parent=nullptr)
void populateAudioDevices()
double getRecordVolume() const
QCheckBox * audioFileCheckBox
Toggle file-based audio input.
QCheckBox * audioPlaylistCheckBox
Use an M3U playlist instead of the audio file.
QCheckBox * audioBuffersCheckBox
Enable spectrum history buffer CLI option.
int getOutputDeviceIndex() const
double getAudioWarmRate() const
Audio startup warmup rate in 1/sec.
QComboBox * outputDeviceComboBox
QDoubleSpinBox * audioWarmRateSpinBox
Startup warmup rate for audio intensity ramp.
bool isAudioTruncEnabled() const
Check whether "stop when audio ends" is selected.
bool isAudioBuffersEnabled() const
Check whether spectrum history buffers are enabled.
QSpinBox * channelSpinBox
QLineEdit * audioPlaylistLineEdit
Displays the selected M3U playlist path.
QSlider * sensitivitySlider
QSlider * recordVolumeSlider
void updateAudioSourceControls()