how to control the output device of soundsc?
47 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Tom Shlomo
am 30 Jan. 2020
Kommentiert: Kaspar Lucattini
am 1 Nov. 2023
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 Kommentare
Geoff Hayes
am 31 Jan. 2020
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.
Akzeptierte Antwort
Jamie Haas
am 27 Mär. 2023
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 Kommentar
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Audio I/O and Waveform Generation 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!