Issue with Matlab audio

3 views (last 30 days)
Mohammad
Mohammad on 2 Aug 2013
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.

Accepted Answer

Jan
Jan on 2 Aug 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.

More Answers (0)

Categories

Find more on Audio I/O and Waveform Generation 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!