Re: Multiple Sound Devices
Re: Multiple Sound Devices
- Subject: Re: Multiple Sound Devices
- From: Bill Stewart <email@hidden>
- Date: Tue, 12 Feb 2002 12:19:13 -0800
on 12/2/02 1:36 AM, Mark Thomas wrote:
>
Hi,
>
Its not using mono or stereo output, but if I have some USB speakers
>
plugged in, I want to send different sound data to the USB speakers, and
>
some other sound data to the internal speakers, as well as know that I have
>
these sound output devices, using the Sound Manager.
>
>
When you are in the Sound Control Panel, it seems to known about the
>
different output devices. Any Ideas how it does this ???.
It uses the CoreAudio APIs to iterate through the list of currently
available AudioDevices (this is described in AudioHardware.h)
Bill
>
>
Thanks
>
Mark.
>
>
> on 2/11/02 8:03 AM, Mark Thomas <email@hidden> wrote:
>
>
>
>> Hi,
>
>> Sorry for asking a Sound Manager question, but there doesn't seem to be
>
>> good one for this, and I guess this is an easy question for you guys :-).
>
>>
>
>> My application presently uses the Sound Manager API, it creates its Sound
>
>> Channels, and everything works great, and I get sound out of all the
>
>> speakers attached.
>
>>
>
>> But thought wouldn't it be cool, to have different sounds out of the
>
>> different speakers.
>
>>
>
>> Is there a way to find out how many speakers devices you have attached,
>
>> and then how to send the data to the different devices. I can see how you do
>
>> this with Core Audio, but the Sound Manager api's seem hidden away, also any
>
>> sample code would be great.
>
>
>
>
>
> I once did performance test comparing stereo output to mono output with
>
> Sound Manager. There was no difference. So why not just output stereo all
>
> the time. In a mono situation the two channels will be mixed (averaged)
>
> automatically, and this apparently causes no performance penalty.
>
>
>
> Saying this makes me wonder whether in fact the mono situation actually
>
> causes only the 1st (left?) channel info to be used. I have long had the
>
> impression that this is not the case, although I can't say now where I
>
> learned that. In any case it would be easy to verify that this is not a
>
> problem.
>
>
>
> -Kurt Bigler (not an apple employee)
>
_______________________________________________
>
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.
mailto:email@hidden
tel: +1 408 974 4056
__________________________________________________________________________
"We'll talk about it later...."
"When?"
"In a future life when we're both cats"
__________________________________________________________________________
_______________________________________________
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.