• 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
AUMatrixMixer questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AUMatrixMixer questions


  • Subject: AUMatrixMixer questions
  • From: Marco Yuen <email@hidden>
  • Date: Sun, 20 Apr 2008 14:47:36 -0700

Hi all,

I am a newbie to CoreAudio, so I decided to work on a small project involving CA. Ultimately, I want to my app to play one file on the left channel and another file on the right channel of my MBP's built-in speakers. I was able to do that in AU Lab and used ``Print Session''  to examine the graph topology, as shown below:
AudioUnitGraph 0x867C84: 
Member Nodes: 
node 1: desc uoua laha lppa, instance 0x980000 O I 
node 2: desc xmua xmxm lppa, instance 0x980001 O I 
node 3: desc xmua xmxm lppa, instance 0x820002 O I 
node 4: desc xmua xmxm lppa, instance 0x820003 O I 
node 5: desc ngua lpfa lppa, instance 0x820005 O I 
node 6: desc ngua lpfa lppa, instance 0x820006 O I 
Connections: 
node   4 bus   0 => node   3 bus   0  [2 ch, 48000 Hz] 
node   3 bus   0 => node   2 bus   0  [1 ch, 48000 Hz] 
node   3 bus   1 => node   2 bus   1  [1 ch, 48000 Hz] 
node   5 bus   0 => node   4 bus   0  [1 ch, 48000 Hz] 
node   6 bus   0 => node   4 bus   1  [1 ch, 48000 Hz] 
node   2 bus   0 => node   1 bus   0  [2 ch, 48000 Hz] 

In my code, I created two synth nodes, one matrix mixer and a default output node.
Now my questions are how does the matrix mixer work? how does one do the channel mapping from AUMatrixMixer to DefaultOuput or from Synth node to AUMatrixMixer? Is there any sample code?
Also, how do I map only one output channel to an input bus. For example, node 5 in the above AUGraph is a fileplayer and it has two output channels (stereo), but AU Lab is mapping only one channel to the input bus of a mixer. How do you do that in the code?  (use the StreamFormat property??)

Thanks,
Marco

 _______________________________________________
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: AUMatrixMixer questions
      • From: james mccartney <email@hidden>
  • Prev by Date: AudioUnitRender fails with error -50 when recording as wav
  • Next by Date: Decoding compressed to LPCM
  • Previous by thread: AudioUnitRender fails with error -50 when recording as wav
  • Next by thread: Re: AUMatrixMixer questions
  • Index(es):
    • Date
    • Thread