audioDevice QML Value Type
오디오 장치에 대해 설명합니다. 더 보기...
Import Statement: | import QtMultimedia |
속성
- description : string
- id : string
- isDefault : bool
- mode : enumeration
상세 설명
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.Null | 널 장치. |
audioDevice.Input | 입력 장치. |
audioDevice.Output | 출력 장치입니다. |
© 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.