Re: Strange silience after connecting to AUGraphicEQ
Re: Strange silience after connecting to AUGraphicEQ
- Subject: Re: Strange silience after connecting to AUGraphicEQ
- From: "Lukhnos D. Liu" <email@hidden>
- Date: Wed, 27 Aug 2008 09:41:09 +0800
On Aug 27, 2008, at 7:53 AM, William Stewart wrote:
You can't provide integer to most audio units on the desktop - you
have to provide float32 - so your "IsSigneInteger" flag is wrong.
In CoreAudioTypes.h there are also some definitions for the linear
PCM flags for native, canonical formats, so have a look through
these... You can also get the format first from an audio unit and
have a look at what its default is and use that as a starting point
Thanks for the advice. I tried the flag kAudioFormatFlagsCanonical,
but the EQ unit still yielded kAudioConverterErr_InvalidInputSize
render error.
I then called AudioUnitGetProperty to get the the
kAudioUnitProperty_StreamFormat from the EQ unit, then I'm even more
puzzled... the reading was this:
sample rate: 44100.000000,
format: lpcm,
flags: 0x00000029 (kAudioFormatFlagsCanonical on Intel)
bytes/packet: 4,
frames/packet: 1,
bytes/frame: 4,
channels/frame: 2,
bits/channel: 32,
reserved: 0x00000000
The number didn't seem to add up (shouldn't bits/channel be 16 in this
case)? I must have wrong understanding of how EQ unit works or what it
expects as input, but I don't know what goes wrong...
Thanks again!
d.
_______________________________________________
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