Revision control
Copy as Markdown
// Copyright (C) 2015 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
/*!
\example audiosource
\title Audio Source Example
\ingroup multimedia_examples
\ingroup audio_examples
\examplecategory {Multimedia}
\brief Recording audio using the QAudioSource class.
\meta {tag} {widgets}
\e{Audio Source} demonstrates the basic use cases of QAudioSource.
\image audiosource-example.png
{UI showing real-time audio waveform and control buttons}
Qt provides the QAudioSource class to enable audio functionality within
a standard application user interface.
This example calculates the maximum linear value of the input audio from the
microphone and displays the output. The UI allows the user to select the
audio input device, pause and resume the audio stream, switch between
different modes of operation, adjust the volume and change the audio format
parameters.
\include examples-run.qdocinc
*/