Re: how to get mono? (the good kind)
Re: how to get mono? (the good kind)
- Subject: Re: how to get mono? (the good kind)
- From: email@hidden
- Date: Wed, 28 Aug 2002 00:29:27 -0700 (PDT)
>
All is more or less well and working as expected.
>
But just the other day, when I put some earphones
>
on, I noticed that my one-channel sound stream
>
is being played through the /left/ speaker only.
You noticed that with the headphones. You mean that
you didn't notice it with your speakers? Or you were
using the Mac's internal speaker?
>
The right speaker is dead.
You mean the right earphone?
>
Since I wish to produce monophonic sound
>
-- that is, one channel of data sent to both
>
speakers simultaneously -- there's obviously
>
some more set up I have to do. Can anyone tell
>
me how to achieve this in CoreAudio? I searched
>
among all the 'kAudioUnitProperty_' constants
>
and couldn't seem to find anything relevant
I think if you set it to mono and that you get
only left output, it simply means that in case
of mono only the hardware's buffer is automatically
filled like this:
You provide it:
B0 B1 B2 B3 B4
and the hardware maps it to:
L R L R L R
B0 0 B1 0 B2 0
In that case, there is no trick other
than setting to stereo 8-bit and duplicate all
your bytes like this:
L R L R L R L R
B0 B0 B1 B1 B2 B2 B3 B3
before sending your buffer.
Pascal
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.