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: Doug Wyatt <email@hidden>
- Date: Wed, 28 Aug 2002 22:26:15 -0700
The default output unit will insert an AudioConverter into the stream
when you're supplying mono to a stereo device (as well as when the
source and HAL formats differ in other ways). Unfortunately there's no
property access to that converter's channel map -- if you could get at
it, you could tell the converter to map both outputs 1 and 2 from
source 1.
We do have an enhancement request to do expose this as a property but I
can't say when it will get done.
But you could use your own AudioConverter to do this, instead of
changing the output unit's source format, just convert your data to the
output format yourself before passing it to the output unit.
Doug
On Tuesday, Aug 27, 2002, at 15:07 US/Pacific, Colin Klipsch wrote:
Greetings.
I'm playing a continuous stream of 8-bit sound samples that I compute
on the fly. (Actually, I'm having the computer do this; I have no
such talent myself.) Toward this end, I'm opening up an AudioUnit,
giving it an input callback routine via an AudioUnitInputCallback, and
specifying the sound's format with an AudioStreamBasicDescription. I
borrowed heavily from the example project in:
/Developer/Examples/CoreAudio/Services/DefaultOutputUnit
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. The right
speaker is dead.
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.
Thankee kindly.
_______________________________________________
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.