在捕獲會話中用於捕獲音頻的音頻輸入。 更多...
| import 語句: |
import QtMultimedia
|
| 在 C++: | QAudioInput |
CaptureSession {
id: playMusic
audioInput: AudioInput {
volume: slider.value
}
recorder: MediaRecorder { ... }
}
Slider {
id: slider
from: 0.
to: 1.
}
You can use AudioInput together with a QtMultiMedia::CaptureSession to capture audio from an audio input device.
另請參閱 Camera and AudioOutput .
|
device : AudioDevice |
This property describes the audio device connected to this input.
The device property represents the audio device this input is connected to. This property can be used to select an output device from the QtMultimedia::MediaDevices::audioInputs() list.
|
muted : bool |
This property holds whether the audio input is muted.
默認為
false
.
|
volume : real |
The volume is scaled linearly, ranging from
0
(無聲) 到
1
(full volume).
注意: 值超齣此範圍將被鉗製。
默認情況下,音量為
1
.
UI volume controls should usually be scaled non-linearly. For example, using a logarithmic scale will produce linear changes in perceived loudness, which is what a user would normally expect from a volume control.
另請參閱 QtAudio::convertVolume ().