Updated documentation for the QAudioRecorder class
Change-Id: I93ab03e9a386578f0b43ba0e966b1570163ff056 Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user