Re: Multi channel mixer - kAudioUnitSubType_MultiChannelMixer
Re: Multi channel mixer - kAudioUnitSubType_MultiChannelMixer
- Subject: Re: Multi channel mixer - kAudioUnitSubType_MultiChannelMixer
- From: Aran Mulholland <email@hidden>
- Date: Thu, 28 May 2009 20:26:18 +1000
cool thanks doug i added the lines
//get the audio unit
err = AUGraphNodeInfo(graph, mixerNode, &mixerDescription, &mixer);
// Describe format
audioFormat.mSampleRate = 44100.00;
audioFormat.mFormatID = kAudioFormatLinearPCM;
audioFormat.mFormatFlags = kAudioFormatFlagIsSignedInteger | kAudioFormatFlagIsPacked;
audioFormat.mFramesPerPacket = 1;
audioFormat.mChannelsPerFrame = 2;
audioFormat.mBitsPerChannel = 16;
audioFormat.mBytesPerPacket = 4;
audioFormat.mBytesPerFrame = 4;
//Apply format
err = AudioUnitSetProperty(mixer,
kAudioUnitProperty_StreamFormat,
kAudioUnitScope_Input,
0,
&audioFormat,
sizeof(audioFormat));
and now my callback is asking for the correct format.
it still would be nice if i could find some explanatory documentation on the different properties you can set and how you go about setting them. im feeling my way in the dark, getting to the destination but if anyone knows of any good learning resources i would be happy hear from them.
_______________________________________________
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