how to control the output device of soundsc?

47 visualizaciones (últimos 30 días)
Tom Shlomo
Tom Shlomo el 30 de En. de 2020
Comentada: Kaspar Lucattini el 1 de Nov. de 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 comentarios
Geoff Hayes
Geoff Hayes el 31 de En. de 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.
Tom Shlomo
Tom Shlomo el 31 de En. de 2020
It's the same when I use audio player.
I should add that this problem does not always happen, sometimes I can get sound out of my headphones.
I am pretty sure this issue is related to the one described in this post.

Iniciar sesión para comentar.

Respuesta aceptada

Jamie Haas
Jamie Haas el 27 de Mzo. de 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.

Más respuestas (1)

Can Xu
Can Xu el 20 de Sept. de 2021
Any updates on this issue?

Categorías

Más información sobre Audio I/O and Waveform Generation en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by