Re: Weird 3D mixer bug
Re: Weird 3D mixer bug
- Subject: Re: Weird 3D mixer bug
- From: Chris Rogers <email@hidden>
- Date: Fri, 13 Sep 2002 12:19:17 -0700
I'm working on a high level Cocoa sound library for our game ports
that uses the 3D mixer on 10.2 (and will use the stereo mixer in
10.1). I'm just hooking up the 3D positioning stuff now and I
noticed something weird.
I'm setting values in the following order: azimuth, elevation,
distance, gain (same order they are listed in the header).
If one parameter changes, I currently change them all. Now, if I
just change the distance parameter, the output sound doesn't change.
When I change the azimuth parameter, though, suddenly the distance
parameter takes effect. But this only happens if I change it to
something that is actually different than its current value (since
I'm resetting it to the same value each time the distance changes).
You've re-discovered a bug which we found shortly after shipping Jaguar.
The bug has now been fixed and will show up in the next release.
The problem occurs when doppler shift is turned off (which is the default
for each input to the mixer). Changing the distance parameter by itself
will not result in any audible difference until the azimuth parameter
changes. If you turn doppler shift on (with the doppler shift property
on your mixer input(s) ) then the problem should go away. If you prefer
to leave doppler shift off, then the only work-around is to change the
azimuth (if only slightly) each time you change the distance.
Chris Rogers
Core Audio Engineer
Apple Computer
_______________________________________________
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.