Add a volume (gain) property to QAudioInput.
Only implemented for PulseAudio so far, but the API does explain that it's optional. Change-Id: I4543a1c81d810fe92bb08f1ed13f3a3534a371e4 Reviewed-by: Ling Hu <ling.hu@nokia.com>
This commit is contained in:
committed by
Qt by Nokia
parent
8aef60c1cf
commit
3b00730eca
@@ -48,6 +48,7 @@
|
||||
#include <QPushButton>
|
||||
#include <QComboBox>
|
||||
#include <QByteArray>
|
||||
#include <QSlider>
|
||||
|
||||
#include <qaudioinput.h>
|
||||
|
||||
@@ -113,6 +114,7 @@ private slots:
|
||||
void toggleSuspend();
|
||||
void stateChanged(QAudio::State state);
|
||||
void deviceChanged(int index);
|
||||
void sliderChanged(int value);
|
||||
|
||||
private:
|
||||
// Owned by layout
|
||||
@@ -120,6 +122,7 @@ private:
|
||||
QPushButton *m_modeButton;
|
||||
QPushButton *m_suspendResumeButton;
|
||||
QComboBox *m_deviceBox;
|
||||
QSlider *m_volumeSlider;
|
||||
|
||||
QAudioDeviceInfo m_device;
|
||||
AudioInfo *m_audioInfo;
|
||||
|
||||
Reference in New Issue
Block a user