AudioOutput QML Type
キャプチャセッションの再生やモニタリングに使用する音声出力です。詳細...
Import Statement: | import QtMultimedia |
In C++: | QAudioOutput |
プロパティ
詳しい説明
MediaPlayer { id: playMusic source: "music.wav" audioOutput: AudioOutput { volume: slider.value } } Slider { id: slider from: 0. to: 1. }
AudioOutput は、QtMultiMedia::MediaPlayer と一緒に使用してオーディオコンテンツを再生したり、MultiMedia::CaptureSession と一緒に使用してキャプチャセッションで処理されたオーディオを監視することができます。
VideoOutput およびAudioInputも参照して ください。
プロパティの説明
device : AudioDevice |
このプロパティは、この出力に接続されているオーディオデバイスを説明します。
device プロパティは、この出力が接続されているオーディオデバイスを表します。このプロパティを使用して、QtMultimedia::MediaDevices::audioOutputs() リストから出力デバイスを選択することができます。
muted : bool |
このプロパティは、音声出力がミュートされているかどうかを保持します。
デフォルトはfalse
です。
volume : real |
このプロパティは、オーディオ出力の音量を保持します。
音量は0.0
(無音) から1.0
(フル音量) まで直線的にスケーリングされます。この範囲外の値はクランプされます:0.0より小さい値は0.0に、1.0より大きい値は1.0に設定されます。
デフォルトの音量は1.0
です。
UIの音量コントロールは通常、非線形にスケーリングされるべきである。例えば、対数スケールを使用すると、知覚されるラウドネスが直線的に変化します。
詳しくはQtMultimedia.convertVolume() を参照してください。
© 2025 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.