How to identify the default audio device
18 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Alain Kuchta
am 22 Mär. 2017
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 Kommentare
Siehe auch
Kategorien
Mehr zu Audio and Video Data finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!