Update audiooutput example with volume slider

Update example for new volume API

Change-Id: I1b9ccbccc62930549e667f0063b3d76feb23a2ea
Reviewed-on: http://codereview.qt-project.org/5662
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: derick hawcroft <derick.hawcroft@nokia.com>
This commit is contained in:
hawcroft
2011-09-28 13:04:18 +10:00
committed by Qt by Nokia
parent a645b75e35
commit ee0ea8c442
2 changed files with 26 additions and 0 deletions

View File

@@ -45,6 +45,8 @@
#include <QObject>
#include <QMainWindow>
#include <QLabel>
#include <QSlider>
#include <QIODevice>
#include <QTimer>
#include <QPushButton>
@@ -94,6 +96,8 @@ private:
QPushButton* m_modeButton;
QPushButton* m_suspendResumeButton;
QComboBox* m_deviceBox;
QLabel* m_volumeLabel;
QSlider* m_volumeSlider;
QAudioDeviceInfo m_device;
Generator* m_generator;
@@ -108,6 +112,7 @@ private:
static const QString PullModeLabel;
static const QString SuspendLabel;
static const QString ResumeLabel;
static const QString VolumeLabel;
private slots:
void notified();
@@ -116,6 +121,7 @@ private slots:
void toggleSuspendResume();
void stateChanged(QAudio::State state);
void deviceChanged(int index);
void volumeChanged(int);
};
#endif