• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Turning on 3D Mixer reverb
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Turning on 3D Mixer reverb


  • Subject: Turning on 3D Mixer reverb
  • From: Bob Lang <email@hidden>
  • Date: Fri, 24 Nov 2006 23:02:23 +0000

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: This email sent to email@hidden
  • Follow-Ups:
    • Bug in CoreAudio, Channel Names property?
      • From: BlazeAudio Developer <email@hidden>
  • Prev by Date: JavaSound says 48000 Hz is 44100 Hz for input
  • Next by Date: Bug in CoreAudio, Channel Names property?
  • Previous by thread: Re: JavaSound says 48000 Hz is 44100 Hz for input
  • Next by thread: Bug in CoreAudio, Channel Names property?
  • Index(es):
    • Date
    • Thread