The QAudioCaptureSource class provides an interface to query and select an audio input endpoint. More...
#include <QAudioCaptureSource>
This class is under development and is subject to change.
Inherits QMediaObject.
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* audiocapturesource = new QAudioCaptureSource; QMediaRecorder* capture = new QMediaRecorder(audiocapturesource);
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.
Destroys the audiocapturesource object.
Returns the active audio input name.
Signal emitted when active audio input changes to name.
Returns the description of the audio input device with name.
Returns a list of available audio inputs
Reimplemented from QMediaObject::availabilityError().
Returns the error state of the audio capture service.
Signal is emitted when the available audio inputs change.
Returns the default audio input name.
Reimplemented from QMediaObject::isAvailable().
Returns true if the audio capture service is available, otherwise returns false.
Set the active audio input to name.