Re: How to set my AUDynamicsProcessor's audioformat?
Re: How to set my AUDynamicsProcessor's audioformat?
- Subject: Re: How to set my AUDynamicsProcessor's audioformat?
- From: Pier <email@hidden>
- Date: Mon, 03 Dec 2012 18:20:22 +0800
Ok doing this : (from Chris Adamson's code)
AudioStreamBasicDescription effectASBD;
UInt32 asbdSize = sizeof (effectASBD);
memset (&effectASBD, 0, sizeof (effectASBD));
AudioUnitGetProperty(_dynamicsUnit, kAudioUnitProperty_StreamFormat, kAudioUnitScope_Input, 0, &effectASBD, &asbdSize);
effectASBD.mSampleRate = 44100.0;
gives
mSampleRate Float64 44100
mFormatID UInt32 1819304813
mFormatFlags UInt32 41
mBytesPerPacket UInt32 4
mFramesPerPacket UInt32 1
mBytesPerFrame UInt32 4
mChannelsPerFrame UInt32 2
mBitsPerChannel UInt32 32
mReserved UInt32 0
which uses more bytes than I need for my purposes.
So the question is - in order to use Apple's AudioUnits, do I absolutely need to conform to these absd parameters?
Thanks.
Pier.
_______________________________________________
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