QAudioCaptureSource Class Reference
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.
Public Functions
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 |
Reimplemented Public Functions
virtual QtMultimediaKit::AvailabilityError | availabilityError () const |
virtual bool | isAvailable () const |
- 12 public functions inherited from QMediaObject
Public Slots
void | setAudioInput ( const QString & name ) |
Signals
void | activeAudioInputChanged ( const QString & name ) |
void | availableAudioInputsChanged () |
- 4 signals inherited from QMediaObject
Additional Inherited Members
- 1 property inherited from QMediaObject
- 2 protected functions inherited from QMediaObject
Detailed Description
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()