QAudioOutput Class
オーディオの出力チャンネルを表す。詳細...
ヘッダ | #include <QAudioOutput> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Multimedia) target_link_libraries(mytarget PRIVATE Qt6::Multimedia) |
qmake | QT += multimedia |
QML で | AudioOutput |
継承: | QObject |
プロパティ
パブリック機能
パブリックスロット
シグナル
void | deviceChanged() |
void | mutedChanged(bool muted) |
void | volumeChanged(float volume) |
詳細説明
このクラスは、QMediaPlayer またはQMediaCaptureSession とともに使用できる出力チャンネルを表します。 使用する物理出力デバイスの選択、チャンネルのミュート、チャンネルのボリュームの変更が可能です。
プロパティ ドキュメント
device : QAudioDevice
このプロパティは、この出力に接続されているオーディオデバイスを保持する。
device プロパティは、この出力が接続されているオーディオデバイスを表します。このプロパティを使用して、QMediaDevices::audioOutputs() リストから出力デバイスを選択することができます。このプロパティをデフォルトで構築されたQAudioDevice オブジェクトに設定することで、システムのデフォルト・オーディオ出力を選択することができます。
アクセス関数:
QAudioDevice | device() const |
void | setDevice(const QAudioDevice &device) |
ノーティファイア信号:
void | deviceChanged() |
muted : bool
このプロパティは、現在のメディアのミュート状態を保持する。
出力がミュートされていれば値はtrue
、そうでなければfalse
。
アクセス関数:
bool | isMuted() const |
void | setMuted(bool muted) |
Notifierシグナル:
void | mutedChanged(bool muted) |
volume : float
このプロパティは、現在の音量を保持する。
音量は、0
(無音)から1
(フル音量)までの範囲で、リニアにスケーリングされます。
注意: この範囲外の値はクランプされます。
デフォルトでは、音量は1
です。
UIのボリュームコントロールは通常、非線形にスケーリングされるべきです。例えば、対数スケールを使用すると、知覚されるラウドネスが直線的に変化します。
アクセス関数
float | volume() const |
void | setVolume(float volume) |
通知シグナル:
void | volumeChanged(float volume) |
QtAudio::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.