diff options
author | Gareth Stockwell <ext-gareth.stockwell@nokia.com> | 2010-02-18 16:37:11 (GMT) |
---|---|---|
committer | Gareth Stockwell <ext-gareth.stockwell@nokia.com> | 2010-02-18 16:37:11 (GMT) |
commit | edbacbac16b23b91209b3216505c873fbf87d1a2 (patch) | |
tree | b02b0afa0bcdf80ce1daf18b88004556e63aeae6 /examples/multimedia/audioinput | |
parent | 28610950d2efb0b543ede40512f6172c37c78698 (diff) | |
download | Qt-edbacbac16b23b91209b3216505c873fbf87d1a2.zip Qt-edbacbac16b23b91209b3216505c873fbf87d1a2.tar.gz Qt-edbacbac16b23b91209b3216505c873fbf87d1a2.tar.bz2 |
Pass QAudioDeviceInfo when creating audio input/output in examples
Reviewed-by: trustme
Diffstat (limited to 'examples/multimedia/audioinput')
-rw-r--r-- | examples/multimedia/audioinput/audioinput.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/multimedia/audioinput/audioinput.cpp b/examples/multimedia/audioinput/audioinput.cpp index 8a97640..b01a396 100644 --- a/examples/multimedia/audioinput/audioinput.cpp +++ b/examples/multimedia/audioinput/audioinput.cpp @@ -208,6 +208,7 @@ InputTest::InputTest() , m_modeButton(0) , m_suspendResumeButton(0) , m_deviceBox(0) + , m_device(QAudioDeviceInfo::defaultInputDevice()) , m_audioInfo(0) , m_audioInput(0) , m_input(0) @@ -279,7 +280,6 @@ void InputTest::initializeAudio() void InputTest::createAudioInput() { - m_audioInput = new QAudioInput(m_device, m_format, this); connect(m_audioInput, SIGNAL(notify()), SLOT(notified())); connect(m_audioInput, SIGNAL(stateChanged(QAudio::State)), SLOT(stateChanged(QAudio::State))); |