• 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
Room types for Reverb2 effect AU on iOS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Room types for Reverb2 effect AU on iOS


  • Subject: Room types for Reverb2 effect AU on iOS
  • From: Chris Adamson <email@hidden>
  • Date: Sun, 06 Nov 2011 22:24:22 -0500

I'm getting a -10879 (kAudioUnitErr_InvalidProperty) when I try to set the ReverbRoomType property on a Reverb2 unit in iOS.

Here's how I create it:
AudioComponentDescription outputcd = {0};
outputcd.componentType = kAudioUnitType_Effect;
outputcd.componentSubType = kAudioUnitSubType_Reverb2;
outputcd.componentManufacturer = kAudioUnitManufacturer_Apple;

AUNode reverbNode;

CheckError(AUGraphAddNode(self.auGraph, &outputcd, &reverbNode), 
  "AUGraphNode[kAudioUnitSubType_Reverb2] failed");
...
CheckError(AUGraphNodeInfo(_auGraph, reverbNode, NULL, &_auReverb),
  "AUGraphNodeInfo failed [reverbNode]");

And here's setting the room type (which fails the "CheckError()" call, which tests the return against noErr and logs the error before exiting). This is the call that fails with kAudioUnitErr_InvalidProperty:

UInt32 roomType = kReverbRoomType_LargeHall2;
CheckError(AudioUnitSetProperty(_auReverb, kAudioUnitProperty_ReverbRoomType, 
kAudioUnitScope_Global, 0, &roomType, sizeof(UInt32)),
"AudioUnitSetProperty[kAudioUnitProperty_ReverbRoomType] failed");

I've only tried 2 different values for the property, but the error makes me think that the property constant itself is wrong.  Is this not settable on iOS 5?  Changing from kAudioUnitProperty_ReverbRoomType to kAudioUnitProperty_ReverbPreset doesn't help either.

Thanks in advance for any suggestions.

--Chris

 _______________________________________________
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: How to make the binaries smaller?
  • Next by Date: Re: How to make the binaries smaller?
  • Previous by thread: coreaudiod daemon gone berserk in 10.72
  • Next by thread: strategies for getting my app's audio working over 48khz HDMI
  • Index(es):
    • Date
    • Thread