3D Audio Unit -- it *seemed* simple!
3D Audio Unit -- it *seemed* simple!
- Subject: 3D Audio Unit -- it *seemed* simple!
- From: Brian Barnes <email@hidden>
- Date: Wed, 16 Oct 2002 22:44:28 -0400
I've had the stereo mixer going for months in dim3, works fine. One
mixer (with multiple inputs) hooked up to one output (and possible
reverb unit.)
Now I want to use the 3Dmixer instead. OK, I setup:
kAudioUnitComponentType,kAudioUnitSubType_Mixer,kAudioUnitID_3DMixer
Then I setup the speaker config:
speaker_config=kSpeakerConfiguration_Stereo;
AudioUnitSetProperty(au_mixer,kAudioUnitProperty_SpeakerConfiguration,kA
udioUnitScope_Output,0,&speaker_config,sizeof(int));
Then I setup the spatial algorithm:
spatial=kSpatializationAlgorithm_HRTF;
AudioUnitSetProperty(au_mixer,kAudioUnitProperty_SpatializationAlgorithm
,kAudioUnitScope_Input,i,&spatial,sizeof(int));
Now, the sounds ... sound ... weird, and no matter WHAT I pass to these
two funtions:
AudioUnitSetParameter(au_mixer,k3DMixerParam_Distance,kAudioUnitScope_In
put,idx,(float)dist,0);
AudioUnitSetParameter(au_mixer,k3DMixerParam_Azimuth,kAudioUnitScope_Inp
ut,idx,ang,0);
I can't get the sound to change in any meaningful way. I've looked at
the sample code, I don't seem to be doing anything different. Any
ideas??
Setting azimuth to any number seems to "stick" it there, and no further
settings change it (I'm not kidding!) Distance just seems to do ...
nothing.
[>] Brian
_______________________________________________
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.