The QAudioCaptureSource class provides an interface to query and select an audio input endpoint. More...
#include <QAudioCaptureSource>
Inherits: QMediaObject.
This class was introduced in Qt Mobility 1.0.
QAudioCaptureSource ( QObject * parent = 0, QMediaServiceProvider * provider = QMediaServiceProvider::defaultServiceProvider() ) | |
~QAudioCaptureSource () | |
QString | activeAudioInput () const |
QString | audioDescription ( const QString & name ) const |
QList<QString> | audioInputs () const |
QString | defaultAudioInput () const |
virtual QtMultimediaKit::AvailabilityError | availabilityError () const |
virtual bool | isAvailable () const |
void | setAudioInput ( const QString & name ) |
void | activeAudioInputChanged ( const QString & name ) |
void | availableAudioInputsChanged () |
The QAudioCaptureSource class provides an interface to query and select an audio input endpoint.
QAudioCaptureSource provides access to the audio inputs available on your system.
You can query these inputs and select one to use.
A typical implementation example:
QAudioCaptureSource* audioSource = new QAudioCaptureSource; QMediaRecorder* recorder = new QMediaRecorder(audioSource); recorder->setOutputLocation(QUrl("test.raw"));
The audiocapturesource interface is then used to:
- Get and Set the audio input to use.
The capture interface is then used to:
- Set the destination using setOutputLocation()
- Set the format parameters using setAudioCodec(),
- Control the recording using record(),stop()
See also QMediaRecorder.
Construct a QAudioCaptureSource using the QMediaService from provider, with parent.
This function was introduced in Qt Mobility 1.0.
Destroys the audiocapturesource object.
Returns the active audio input name.
This function was introduced in Qt Mobility 1.0.
Signal emitted when active audio input changes to name.
This function was introduced in Qt Mobility 1.0.
Returns the description of the audio input device with name.
This function was introduced in Qt Mobility 1.0.
Returns a list of available audio inputs
This function was introduced in Qt Mobility 1.0.
Reimplemented from QMediaObject::availabilityError().
Returns the error state of the audio capture service.
This function was introduced in Qt Mobility 1.0.
Signal is emitted when the available audio inputs change.
This function was introduced in Qt Mobility 1.0.
Returns the default audio input name.
This function was introduced in Qt Mobility 1.0.
Reimplemented from QMediaObject::isAvailable().
Returns true if the audio capture service is available, otherwise returns false.
This function was introduced in Qt Mobility 1.0.
Set the active audio input to name.
This function was introduced in Qt Mobility 1.0.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.