How to identify the default audio device
18 views (last 30 days)
Show older comments
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 Comments
Answers (1)
Alain Kuchta
on 22 Mar 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 Comments
See Also
Categories
Find more on Audio and Video Data in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!