Updated documentation for the QAudioRecorder class

Change-Id: I93ab03e9a386578f0b43ba0e966b1570163ff056
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
This commit is contained in:
Jonas Rabbe
2012-02-09 08:25:37 +10:00
committed by Qt by Nokia
parent 50a80cd083
commit c77e442b99
2 changed files with 29 additions and 3 deletions

View File

@@ -208,6 +208,19 @@ void MediaExample::MediaRecorder()
audioRecorder->setOutputLocation(QUrl::fromLocalFile("test.amr"));
audioRecorder->record();
//! [Audio recorder]
//! [Audio recorder endpoints]
QStringList inputs = audioRecorder->audioInputs();
QString selectedInput = audioRecorder->defaultAudioInput();
foreach (QString input, inputs) {
QString description = audioRecorder->audioInputDescription(input);
// show descriptions to user and allow selection
selectedInput = input;
}
audioRecorder->setAudioInput(selectedInput);
//! [Audio recorder endpoints]
#endif
}