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