Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Turning on 3D Mixer reverb



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: http://lists.apple.com/mailman/options/coreaudio-api/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.