Re: Getting the spacial position of speakers?
Re: Getting the spacial position of speakers?
- Subject: Re: Getting the spacial position of speakers?
- From: Jeff Moore <email@hidden>
- Date: Tue, 11 May 2004 14:26:21 -0700
To get the speaker configuration of the sound hardware, you have to ask
the output device itself. You can do this either through the HAL itself
or through AUHAL, which mirrors the various properties from the HAL.
The property you are interested in is
kAudioDevicePropertyPreferredChannelLayout which will return an
AudioChannelLayout populated with as much information about the speaker
configuration as the user has provided through AMS.
Needless to say, this stuff is outside of what OpenAL specifies, so
you'll be dropping down to the CoreAudio APIs directly.
On May 11, 2004, at 1:12 PM, Jean-Francois Roy wrote:
Greetings,
I am currently trying to write a very simple sound engine using Apple's
new OpenAL implementation, and I was wondering something about speaker
position (in a multi-channel environment).
As you all know, one can configure the position of speakers in
"listener space" (only x and z axis from what I can tell) in Audio MIDI
Setup. I was wondering if there was a way to get the actual coordinates
of each speaker (given its channel number possibly) with respect to the
listener (or the coordinate system, but theoretically the listener is
at {0, 0, 0}) in order to place, for instance, a source directly "on"
or "at" a speaker or channel.
There doesn't seem to be any mention of that in the OAL specs, from
what I understood of them in any case.
Regards,
Jeff Roy
--
Co-Founder of MacStorm
Programmer at MacStorm
http://www.macstorm.org
email@hidden
http://www.macstorm.org/bahamut/Jean-Francois.gpgkey
[demime 0.98b removed an attachment of type application/pgp-signature
which had a name of PGP.sig]
_______________________________________________
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.
--
Jeff Moore
Core Audio
Apple
_______________________________________________
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.