이 페이지에서

audioDevice QML Value Type

오디오 장치를 설명합니다. 더 보기...

Import Statement: import QtMultimedia

속성

상세 설명

audioDevice 값 유형은 시스템에 연결된 오디오 장치의 속성을 설명합니다.

audioDevice 인스턴스는 해당 물리적 장치가 연결 해제되거나 설정이 변경된 경우에도 수명 주기 내내 그 속성을 유지합니다. 업데이트된 속성을 추적하려면, 사용자는 관련 신호가 발생했을 때 MediaDevices 에서 audioDevice의 새 인스턴스를 불러와야 합니다.

오디오 입력 또는 출력 장치 목록은 MediaDevices 타입에서 조회할 수 있습니다. 특정 오디오 장치를 입력 또는 출력으로 선택하려면 AudioInput 또는 AudioOutput 에서 해당 장치를 장치로 설정하십시오.

MediaPlayer {
    audioOutput: AudioOutput {
        device: mediaDevices.defaultAudioOutput
    }
}
MediaDevices {
    id: mediaDevices
}

속성 설명서

description : string

오디오 장치의 사람이 읽을 수 있는 이름을 저장합니다.

이 문자열을 사용하여 사용자에게 장치를 표시합니다.

id : string

오디오 장치의 식별자를 보관합니다.

장치 이름은 사용 중인 플랫폼/오디오 플러그인에 따라 다릅니다.

이는 오디오 장치에 대한 고유 식별자입니다.

isDefault : bool

이 장치가 기본 오디오 장치인 경우 true입니다.

mode : enumeration

이 장치가 입력 장치인지 출력 장치인지를 나타냅니다.

반환되는 값은 다음 중 하나일 수 있습니다:

상수설명
AudioDevice.Nullnull 장치입니다.
AudioDevice.Input입력 장치입니다.
AudioDevice.Output출력 장치.

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