← index
acidcam-gpu/ACMX2/interface/audio-window.hpp
Source: acidcam-gpu/ACMX2/interface/audio-window.hpp
#ifndef AUDIOSETTINGS_HPP

#define AUDIOSETTINGS_HPP


#include <QCheckBox>

#include <QComboBox>

#include <QDialog>

#include <QHBoxLayout>

#include <QLabel>

#include <QPushButton>

#include <QSlider>

#include <QSpinBox>

#include <QVBoxLayout>


class AudioSettings : public QDialog {
    Q_OBJECT

  public:
    explicit AudioSettings(QWidget *parent = nullptr);

    bool isAudioReactivityEnabled() const;
    bool isAudioPassThroughEnabled() const;
    int getNumberOfChannels() const;
    double getSensitivity() const;
    int getInputDeviceIndex() const;
    int getOutputDeviceIndex() const;

  private:
    void populateAudioDevices();

    QCheckBox *audioReactivityCheckBox;
    QCheckBox *audioPassThroughCheckBox;
    QSpinBox *channelSpinBox;
    QSlider *sensitivitySlider;
    QComboBox *inputDeviceComboBox;
    QComboBox *outputDeviceComboBox;
    QPushButton *okButton;
    QPushButton *cancelButton;
};

#endif