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 |
이 프로퍼티는 이 출력에 연결된 오디오 장치를 설명합니다.
장치 프로퍼티는 이 출력에 연결된 오디오 장치를 나타냅니다. 이 프로퍼티는 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.