このページでは

音声出力の例

QAudioSink クラスを使ってオーディオ再生を可能にする。

オーディオ出力はQAudioSink の基本的な使用例を示します。

再生コントロールとオーディオ出力モードを選択できるUI

この例では、連続的なオーディオ再生を供給するためのトーン・ジェネレータを提供します。UIにより、ユーザーはオーディオ出力デバイスの選択、再生の一時停止と再開、異なる動作モードの切り替え、音量の調整、オーディオフォーマットパラメーターの変更を行うことができます。

例の実行

からサンプルを実行するには Qt Creatorからサンプルを実行するには、Welcome モードを開き、Examples からサンプルを選択します。詳細については、Qt Creator:Tutorialを参照してください:ビルドと実行

サンプル・プロジェクト @ code.qt.io

© 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.