• 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
3D Mixer Unit in iOS 4
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

3D Mixer Unit in iOS 4


  • Subject: 3D Mixer Unit in iOS 4
  • From: Alex Matheu <email@hidden>
  • Date: Tue, 29 Nov 2011 15:29:53 -0500

I am having some issues with a 3D Mixer Unit in iOS 4, it plays fine in iOS 5 but creates a high pitched whine in iOS 4. I read that the inputs need to be mono, I tried that but with the same results.

This is my description

AudioStreamBasicDescription dstFormat;
    dstFormat.mSampleRate = 44100.00;
dstFormat.mFormatID = kAudioFormatLinearPCM;
dstFormat.mFormatFlags = kAudioFormatFlagIsSignedInteger | kAudioFormatFlagIsPacked;
dstFormat.mFramesPerPacket = 1;
dstFormat.mChannelsPerFrame = 1;
dstFormat.mBitsPerChannel = 16;
dstFormat.mBytesPerPacket = 2;
dstFormat.mBytesPerFrame = 2;

//the cross fader mixer
crossFaderMixerDescription.componentFlags = 0;
crossFaderMixerDescription.componentFlagsMask = 0;
crossFaderMixerDescription.componentType = kAudioUnitType_Mixer;
crossFaderMixerDescription.componentSubType = kAudioUnitSubType_AU3DMixerEmbedded;
crossFaderMixerDescription.componentManufacturer = kAudioUnitManufacturer_Apple;
err = AUGraphAddNode(graph, &crossFaderMixerDescription, &crossFaderMixerNode);
NSAssert(err == noErr, @"Error creating mixer node.");

//set the crossfader input properties
err = AudioUnitSetProperty(crossFaderMixer, 
  kAudioUnitProperty_StreamFormat, 
  kAudioUnitScope_Input, 
  0, 
  &audioFormat, 
  sizeof(audioFormat));
NSAssert(err == noErr, @"Error setting property format 0.");

Thank you,
--
Alex Matheu
www.matheusound.net

 _______________________________________________
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

  • Prev by Date: Re: iOS SDK: ExtAudioFileSeek
  • Next by Date: Re: MIDIPortDisconnectSource() hangs on 10.7
  • Previous by thread: Re: iOS SDK: ExtAudioFileSeek
  • Index(es):
    • Date
    • Thread