• 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
set spatialization algorithm for AU3DMixerEmbedded
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

set spatialization algorithm for AU3DMixerEmbedded


  • Subject: set spatialization algorithm for AU3DMixerEmbedded
  • From: Antoine Gonot <email@hidden>
  • Date: Mon, 14 Sep 2009 18:06:51 +0200

Dear list,

I had no problem implementing 3DMixer for MacOS. Now, I am trying to implement it on iPhone OS, and I have an error when trying to set the rendering flags and the spatial algorithm for each input bus of the mixer. Despite of this error, my graph can be initalized and the audio stream can be processed (i.e. I hear my sound samples) ... I don't understand why. Is there known errors with the "iPhone" version of the 3DMixer units ?

Best regards,

Antoine

------------------------------
Here is a sample code, executed just before  the mixer node and output node are connected and before the graph is initialized :

UInt32    render_flags_3d;
UInt32    renderFlagSize = sizeof(render_flags_3d);
UInt32   spatAlgo = kSpatializationAlgorithm_HRTF;

    

for (UInt32 inBuses = 0; inBuses < 3; inBuses++) {

result = AudioUnitGetProperty (mixer,
kAudioUnitProperty_3DMixerRenderingFlags,
kAudioUnitScope_Input,
inBuses,
&render_flags_3d,
&renderFlagSize);

render_flags_3d |= k3DMixerRenderingFlags_DistanceDiffusion;

result = AudioUnitSetProperty(mixer,
kAudioUnitProperty_3DMixerRenderingFlags,
kAudioUnitScope_Input, 
inBuses,
&render_flags_3d,
sizeof(render_flags_3d));

result = AudioUnitSetProperty(mixer,
kAudioUnitProperty_SpatializationAlgorithm,
kAudioUnitScope_Input,
inBuses,
&spatAlgo,
sizeof(spatAlgo));

}
------------------------------
 _______________________________________________
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:
    • Re: set spatialization algorithm for AU3DMixerEmbedded
      • From: James McCartney <email@hidden>
  • Prev by Date: Re: memory use / embedding concerns
  • Next by Date: Applying a low-pass cutoff inside an AU
  • Previous by thread: Re: memory use / embedding concerns
  • Next by thread: Re: set spatialization algorithm for AU3DMixerEmbedded
  • Index(es):
    • Date
    • Thread