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.