オーディオソースの例
QAudioSource クラスを使って音声を録音します。
Audio Sourceは、QAudioSource の基本的な使用例を示しています。

Qt はQAudioSource クラスを提供し、標準アプリケーションのユーザーインターフェイスでオーディオ機能を実現します。
この例では、マイクからの入力音声の最大線形値を計算し、出力を表示します。UIでは、オーディオ入力デバイスの選択、オーディオストリームの一時停止と再開、異なる動作モードの切り替え、ボリュームの調整、オーディオフォーマットパラメータの変更が可能です。
例の実行
からサンプルを実行するには Qt Creatorからサンプルを実行するには、Welcome モードを開き、Examples からサンプルを選択します。詳細については、Qt Creator:Tutorialを参照してください:ビルドと実行。
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.