AudioInput QML Type
キャプチャセッションで音声をキャプチャするために使用する音声入力。詳細...
| Import Statement: | import QtMultimedia |
| In C++: | QAudioInput |
プロパティ
詳しい説明
CaptureSession {
id: playMusic
audioInput: AudioInput {
volume: slider.value
}
recorder: MediaRecorder { ... }
}
Slider {
id: slider
from: 0.
to: 1.
}AudioInput を QtMultiMedia::CaptureSession とともに使用すると、オーディオ入力デバイスからオーディオをキャプチャできます。
Camera とAudioOutputも参照してください 。
プロパティの説明
device : AudioDevice
このプロパティは、この入力に接続されているオーディオデバイスを記述する。
device プロパティは、この入力が接続されているオーディオデバイスを表します。このプロパティを使用して、QtMultimedia::MediaDevices::audioInputs() リストから出力デバイスを選択することができます。
muted : bool
このプロパティは、オーディオ入力がミュートされているかどうかを保持する。
デフォルトはfalse です。
volume : real
音量はリニアにスケールされ、0 (無音)から1 (フル音量)まで。
注意: この範囲外の値はクランプされます。
デフォルトでは音量は1 です。
UIのボリュームコントロールは通常、非線形にスケーリングされるべきです。例えば、対数スケールを使用すると、知覚されるラウドネスが直線的に変化します。
QtAudio::convertVolume()も参照してください 。
© 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.