how to control the output device of soundsc?
조회 수: 24 (최근 30일)
이전 댓글 표시
When I use soundsc to play an audio signal, the audio is played through the speakers, even when the headphones are connected.
Other MATLAB sounds (such as errors) are played through the headphones.
How can I get soundsc to use the headphones?
(I recently moved from windows to mac. In windows it was no problem as soundsc used the output device defined by the operating system)
Thanks!
댓글 수: 2
Geoff Hayes
2020년 1월 31일
Tom - what happens if you use the audio player? I'm pretty sure that I was able to use headphones (on my Mac) with this player.
채택된 답변
Jamie Haas
2023년 3월 27일
This can happen when you plug in headphones after Matlab has been launched.
Running the following command worked for me:
audiodevreset
You can see the list of devices that matlab sees by running:
info = audiodevinfo
and then viewing the struct returned to info variable.
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Instrument Control Toolbox Supported Hardware에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!