How to identify the default audio device
조회 수: 18 (최근 30일)
이전 댓글 표시
Calling audioplayer with ID=-1 will use the default output audiodevice, but how can I know which one is the default when I have multiple devices availabe on the system ? I tried audiodevinfo(0,-1), but this returns an error. Is the default always the first device on the list returned by audiodevinfo ?
댓글 수: 0
답변 (1개)
Alain Kuchta
2017년 3월 22일
The default audio device for recording or playing sound is determined by the operating system and is typically a user-customization preference. For example, in Windows 10, default audio devices are selected via Control Panel -> Hardware and Sound -> Sound.
MATLAB uses the default audio device as selected by the operating system. The default is not always the first device on the list returned by audiodevinfo.
Can you give more detail about the workflow for which you need to know which audio device will be used as the default?
댓글 수: 2
참고 항목
카테고리
Help Center 및 File Exchange에서 Audio and Video Data에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!