• 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
iphone Audio Unit mixer balance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

iphone Audio Unit mixer balance


  • Subject: iphone Audio Unit mixer balance
  • From: "Raleigh F. Rinehart" <email@hidden>
  • Date: Tue, 23 Jun 2009 12:05:33 -0500

So I am working on what I thought would be a fairly simple task, adjusting the output balance (pan?) left/right of several inputs independantly.  
So far I have had zero success, is this even possible?   I was first using a MultiChannelMixer, and after many fruitless hours googling, searching the headers and docs I determined it is not possible, at least not to my limited ability and knowledge.  
So I switched to using the AU3DMixerEmbedded, which I naively assumed I could simply set the azimuth on to get the desired effect.  However when I try I get a kAudioUnitErr_InvalidParameter error.   The header does state that "only some of these parameters are available in the embedded implementation of this AU"  but no where do I find which are and which are not.  Seems silly to me that this parameter would not be supported.
So what am I doing wrong?  Surely there must be a way to achieve such a simple effect.

- (OSStatus)panTrack:(Float32)pan track:(int)num
{
        //kAudioUnitParameterUnit_Pan
    //pan is -1->1
    Float32    azimuth = 180.0 * pan;
    NSLog(@"Panning Azimuth of track %d to %f", num, azimuth);
    status = AudioUnitSetParameter(mMixerUnit,
                                   k3DMixerParam_Azimuth,
                                   kAudioUnitScope_Output,
                                   num,
                                   azimuth,
                                   0);
    checkStatus(status);
    return status;
}


My AUGraph looks like this  [file data] ->3D mixer -> Multichannel Mixer(for "master" volume con) -> remoteIO output ->[sound!]


AudioUnitGraph 0xDBAD003:
  Member Nodes:
node 1: 'auou' 'rioc' 'appl', instance 0xd331c0 O I
node 2: 'aumx' '3dem' 'appl', instance 0xd34430 O I
node 3: 'aumx' 'mcmx' 'appl', instance 0xd4a1d0 O I
  Connections:
node   3 bus   0 => node   1 bus   0  [2 ch, 44100 Hz]
node   2 bus   0 => node   3 bus   0  [2 ch, 44100 Hz]
  Input Callbacks:
{0x6ba6, 0xd31c20} => node   2 bus   0  [1 ch, 44100 Hz]
{0x6ba6, 0xd31c20} => node   2 bus   1  [1 ch, 44100 Hz]
{0x6ba6, 0xd31c20} => node   2 bus   2  [1 ch, 44100 Hz]


thanks a bunch!

-raleigh

 _______________________________________________
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: iphone Audio Unit mixer balance
      • From: james mccartney <email@hidden>
    • Re: iphone Audio Unit mixer balance
      • From: "Raleigh F. Rinehart" <email@hidden>
  • Prev by Date: Re: Audio mixing in kernel ?
  • Next by Date: Re: Aggregate devices
  • Previous by thread: Re: FIR convolution & delayline buffer question
  • Next by thread: Re: iphone Audio Unit mixer balance
  • Index(es):
    • Date
    • Thread