QAudioInput Class

오디오 입력 채널을 나타냅니다. 더 보기...

헤더: #include <QAudioInput>
CMake: find_package(Qt6 REQUIRED COMPONENTS Multimedia)
target_link_libraries(mytarget PRIVATE Qt6::Multimedia)
qmake: QT += multimedia
QML에서: AudioInput
상속합니다: QObject

속성

공용 기능

QAudioDevice device() const
bool isMuted() const
float volume() const

공용 슬롯

void setDevice(const QAudioDevice &device)
void setMuted(bool muted)
void setVolume(float volume)

신호

void deviceChanged()
void mutedChanged(bool muted)
void volumeChanged(float volume)

상세 설명

이 클래스는 QMediaCaptureSession 와 함께 사용할 수 있는 입력 채널을 나타냅니다. 사용할 물리적 입력 장치의 선택, 채널 음소거, 채널의 볼륨 변경이 가능합니다.

속성 문서

device : QAudioDevice

이 프로퍼티에는 이 입력에 연결된 오디오 장치가 저장됩니다.

장치 속성은 이 입력에 연결된 오디오 장치를 나타냅니다. 이 속성은 QMediaDevices::audioInputs() 목록에서 입력 장치를 선택하는 데 사용할 수 있습니다.

이 속성을 기본으로 구성된 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

이 속성은 오디오 입력의 볼륨을 반환합니다.

함수에 액세스합니다:

float volume() const
void setVolume(float volume)

알림 신호:

void volumeChanged(float volume)

© 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.