• 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
Re: how to set inputs and outputs in the AUmixer?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to set inputs and outputs in the AUmixer?


  • Subject: Re: how to set inputs and outputs in the AUmixer?
  • From: William Stewart <email@hidden>
  • Date: Wed, 2 Dec 2009 17:25:04 -0800

Try using Plain not Rich text in your postings

On Dec 1, 2009, at 4:08 AM, Fredrik Jansson wrote:

I am trying and failing at getting the PlayFile.cpp example to work Nested Inside an audio Unit. I have a few problems that i would really appriciate some help on since the documentation for the fileplayerAU and the AUmixer seems non existant (i have searched around ALOT without finding anything). This is my first problem but i get my mails bounced whenever there is any code in them so i hope this one gets through. When trying to set the number of input channels for my mixer au what am i doing wrong ?
This is how i create my mixer
ComponentDescription cd;
Component comp;
Mixer = new CAAudioUnit();
//Create the mixer------------------------------------
cd.componentType = kAudioUnitType_Mixer;
cd.componentSubType = kAudioUnitSubType_Mixer;
cd.componentManufacturer = kAudioUnitManufacturer_Apple;
cd.componentFlags = 0;
cd.componentFlagsMask = 0;
compMixer = FindNextComponent(NULL, &cd);
CAComponent* thecomponentmixer = new CAComponent(comp);
if (compMixer == NULL) exit (-1);
err = CAAudioUnit::Open(*thecomponentmixer,*Mixer);

I don't think you are finding what you think you are. You have to use types and subtypes from the same header file, and somehow you are pulling in AUNTComponent.h (that has SubType_Mixer) in it, and that is wrong. You shouldn't be using any of the definitions in that header file, and you must be including it explicitly somewhere as it isn't included in the umbrella includes for the framework (which is what you should always use if you can).



If you look at the comp description of compMixer, it will be one of these (I'm using auval to print out the available mixers on the system)
% auval -s aumx


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
AU Validation Tool
Version: 1.2.3a1
Copyright 2003-2007, Apple, Inc. All Rights Reserved.


Specify -h (-help) for command options
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


aumx 3dmx appl  -  Apple: AUMixer3D
aumx mcmx appl  -  Apple: AUMultiChannelMixer
aumx mxmx appl  -  Apple: AUMatrixMixer
aumx smxr appl  -  Apple: AUMixer

So, its impossible to answer the rest of your questions because I don't actually know which mixer you are using.

Bill

/*The first one of these calls succedes the other one fails which i find very illogical and contrary to the small ammount of documentation i have found*/
XThrowIfError (Mixer->SetNumberChannels(kAudioUnitScope_Output, 0,4),"SetNumberChannels");//how can this sucede? is a mixer not N number of inputs to exaclty 2 outputs?


XThrowIfError (Mixer->SetNumberChannels(kAudioUnitScope_Input, 0,2),"SetNumberChannels");//fails why?
What i want to do is set 3 inputs to 2 outputs.
should i use some Mixer->SetProperty call instead ? how would that look ?


Ladda ner nya Internet Explorer 8! Ladda ner nya Internet Explorer 8! _______________________________________________
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

_______________________________________________ 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
References: 
 >how to set inputs and outputs in the AUmixer? (From: Fredrik Jansson <email@hidden>)

  • Prev by Date: Re: Inconsistencies with large WAV file
  • Next by Date: Re: buggy AUMatrixReverb, reaper ??
  • Previous by thread: how to set inputs and outputs in the AUmixer?
  • Next by thread: buggy AUMatrixReverb, reaper ??
  • Index(es):
    • Date
    • Thread