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
이 프로퍼티에는 이 출력에 연결된 오디오 장치가 저장됩니다.
장치 속성은 이 출력에 연결된 오디오 장치를 나타냅니다. 이 속성은 QMediaDevices::audioOutputs() 목록에서 출력 장치를 선택하는 데 사용할 수 있습니다. 이 속성을 기본으로 구성된 QAudioDevice 개체로 설정하여 시스템 기본 오디오 출력을 선택할 수 있습니다.
기능에 액세스합니다:
QAudioDevice | device() const |
void | setDevice(const QAudioDevice &device) |
알림 신호:
void | deviceChanged() |
muted : bool
이 속성은 현재 미디어의 음소거 상태를 유지합니다.
출력이 음소거된 경우 값은 true
이며, 그렇지 않으면 false
입니다.
함수에 액세스합니다:
bool | isMuted() const |
void | setMuted(bool muted) |
알림 신호:
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.