• 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: MatrixMixer info
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MatrixMixer info


  • Subject: Re: MatrixMixer info
  • From: "Stefan Werner" <email@hidden>
  • Date: Tue, 18 Nov 2003 19:16:30 +0100
  • Organization: http://freemail.web.de/

From: Stefan Werner <email@hidden>
Subject: Re: MatrixMixer info
Date: 18. November 2003 19:12:52 MEZ
To: Robert Grant <email@hidden>, email@hidden

Hi,

On 18.11.2003, at 18:54, Robert Grant wrote:

> Haven't used the ConverterUnit but you should ensure that the number of channels and the
channel layout (OK Bill? ;-)
> of the ConverterUnit match the input bus it's connected to otherwise it won't work. Also make sure
you disable any unused input buses.

Well, I think I am doing all this. Here are some pieces of my code.

At setup time:

UInt32 num= kMatrixChannels;
AudioUnitSetProperty( mMixerUnit,
kAudioUnitProperty_BusCount,
kAudioUnitScope_Input,
0,
&num,
sizeof(UInt32) );

num = 1;
AudioUnitSetProperty( mMixerUnit,
kAudioUnitProperty_BusCount,
kAudioUnitScope_Output,
0,
&num,
sizeof(UInt32) );

AudioUnitSetParameter( mMixerUnit,
kMatrixMixerParam_Volume,
kAudioUnitScope_Global,
0xFFFFFFFF, 1.0, 0);

AudioUnitInitialize(mMixerUnit);

for (i = 0; i < kMatrixChannels; i++) {
AudioUnitSetParameter(mMixerUnit, kMatrixMixerParam_Enable,
kAudioUnitScope_Input, i, 0, 0);
AudioUnitSetParameter(mMixerUnit, kMatrixMixerParam_Volume,
kAudioUnitScope_Global, (i<<16)+0xffff, 1.0, 0);
AudioUnitSetParameter(mMixerUnit, kMatrixMixerParam_Volume,
kAudioUnitScope_Global, (i<<16), 1.0, 0);
}
AudioUnitSetParameter(mMixerUnit, kMatrixMixerParam_Volume,
kAudioUnitScope_Global, 0xffff0000, 1.0, 0);

Then, when I add a Converter Unit (iUnit in this case) I match formats and connect the nodes, finally
I enable the input of the mixer:

AudioUnitGetProperty( iUnit,
kAudioUnitProperty_StreamFormat,
kAudioUnitScope_Output,
0,
&desc,
&size );

AudioUnitSetProperty( mMixerUnit,
kAudioUnitProperty_StreamFormat,
kAudioUnitScope_Input,
destInputNumber,
&desc,
size );

AudioUnitSetProperty(mMixerUnit,
kAudioUnitProperty_MakeConnection,
kAudioUnitScope_Input,
mNumClients,
&connection,
sizeof(AudioUnitConnection));


AudioUnitSetParameter(mMixerUnit,
kMatrixMixerParam_Enable,
kAudioUnitScope_Input,
destInputNumber, 1, 0);

None of the functions returns an error (I left away the error checking here for easier reading), and my
IOProc on the other side of the ConverterUnit gets called. Still, no sound. Am I doing something wrong
in mixing or in enabling the channel?

thanks,
Stefan
______________________________________________________________________________
WEB.DE FreeMail wird 5 Jahre jung! Feiern Sie mit uns und
nutzen Sie die neuen Funktionen http://f.web.de/features/?mc=021130
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: MatrixMixer info
      • From: Robert Grant <email@hidden>
  • Prev by Date: Re: MatrixMixer info
  • Next by Date: Re: MatrixMixer info
  • Previous by thread: Re: MatrixMixer info
  • Next by thread: Re: MatrixMixer info
  • Index(es):
    • Date
    • Thread