Issue with Matlab audio
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi;
I am sending a tone to only one side of the headphones I am using the following code for it:
t= 0:1/16000:5;
chan1 = cos(2*pi*500*t)'; %500 Hz tone
chan2 = zeros(size(chan1)); % silence
x = [chan1 chan2]; % stereo signal
sound(x, 16000)
However, I am still getting a tone from both sides of the ear plug. Why is that?
Is it my sound card that cannot do it? I do not understand.
Thanks for helping.
0 comentarios
Respuesta aceptada
Jan
el 2 de Ag. de 2013
Either the sound card drivers are set to mono-output, or the connector of your earplugs do not fit exactly such that both channel have contact. I do not know any mono sound cards, such that I'd exclude this as a problem.
Therefore I'd start with using other speakers and check the sound setup in your operating system. But I'm convinced that this problem is not related to Matlab.
0 comentarios
Más respuestas (0)
Ver también
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!