Re: Turning on 3D Mixer reverb
Re: Turning on 3D Mixer reverb
- Subject: Re: Turning on 3D Mixer reverb
- From: Bob Lang <email@hidden>
- Date: Sat, 2 Dec 2006 15:04:44 +0000
Hi James
I've discovered that if I set the distance to a value > 5.0 and set
the azimuth to 90, then the reverb as described in TN2112 appears to
make some difference to the sound but the amount of reverb is fixed.
Ideally, I would like to control how much reverb occurs.
As you suggested, I tried using k3DMixerParam_ReverbBlend with no
success. It appears to be undefined. A Google search suggested that
I could use the absolute of 5, but this doesn't appear to make any
difference to the intensity of reverb.
Where is this parameter (k3DMixerParam_ReverbBlend) described in the
documentation? What is its valid range?
I can find no trace of it anywhere (other than a passing reference in
Google)
Thanks
Bob
--
On 1 Dec 2006, at 19:56, James McCartney wrote:
parameter k3DMixerParam_ReverbBlend controls reverb blend and
defaults to 0.0 (no reverb).
On Nov 24, 2006, at 3:02 PM, Bob Lang wrote:
Hi
I've been playing with the 3D mixer using Tech Note 2112 (http://
developer.apple.com/technotes/tn2004/tn2112.html) as a guide. I
can get Azimuth, Distance and Elevation working ok, but I can't
seem to get internal reverb to work.
TN2112 says that I need to enable reverb for the whole mixer like
this:
UInt32 reverbSetting = 1 // turn it on;
result = AudioUnitSetProperty(mMixerUnit,
kAudioUnitProperty_UsesInternalReverb,
kAudioUnitScope_Global,
0,
&reverbSetting,
sizeof(reverbSetting));
And turn it on for each input bus like this:
UInt32 render_flags_3d;
UInt32 outSize = sizeof(render_flags_3d);
// get the current render flags for this bus
result = AudioUnitGetProperty (mMixerUnit,
kAudioUnitProperty_3DMixerRenderingFlags,
kAudioUnitScope_Input,
busIndex,
&render_flags_3d,
&outSize);
// turn on this render flag and then set the bus
render_flags_3d |= k3DMixerRenderingFlags_DistanceDiffusion;
result = AudioUnitSetProperty( mMixerUnit,
kAudioUnitProperty_3DMixerRenderingFlags,
kAudioUnitScope_Input, busIndex,
&render_flags_3d,
sizeof(render_flags_3d));
Unfortunately, it doesn't seem to make any difference I can hear
to the output. Has anyone else got this working? Is this effect
too subtle for my ears? Or have I missed something?
Thanks in advance
Bob
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40apple.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden