![]() |
Home · All Classes · All Functions · | ![]() |
The QAudioCaptureSource class provides an interface to query and select an audio input device. More...
#include <QAudioCaptureSource>
This class is under development and is subject to change.
Inherits QMediaObject.
QAudioCaptureSource ( QObject * parent = 0, QMediaServiceProvider * provider = QMediaServiceProvider::defaultServiceProvider() ) | |
~QAudioCaptureSource () | |
int | defaultDevice () const |
QString | description ( int index ) const |
int | deviceCount () const |
QIcon | icon ( int index ) const |
QString | name ( int index ) const |
int | selectedDevice () const |
void | setSelectedDevice ( int index ) |
void | devicesChanged () |
void | selectedDeviceChanged ( int index ) |
void | selectedDeviceChanged ( const QString & deviceName ) |
The QAudioCaptureSource class provides an interface to query and select an audio input device.
QAudioCaptureSource provides access to the audio devices available on your system.
You can query these devices 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 device 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 default audio input devices index.
Returns the description of the audio input device at index.
Returns the number of audio input devices available.
Signal is emitted when the available audio input devices has changed.
Returns the icon for the audio input device at index.
Returns the name of the audio input device at index.
Returns the index of the currently selected audio input device.
See also setSelectedDevice().
Signal emitted when selected audio device changes to index.
Signal emitted when selected audio device changes to deviceName.
Sets the audio input device to index.
See also selectedDevice().
Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) | Trademarks | Qt Mobility Project 1.0.0 (Technology Preview) |