Re: Strange silience after connecting to AUGraphicEQ
Re: Strange silience after connecting to AUGraphicEQ
- Subject: Re: Strange silience after connecting to AUGraphicEQ
- From: William Stewart <email@hidden>
- Date: Tue, 26 Aug 2008 16:53:38 -0700
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
Bill
On Aug 26, 2008, at 2:21 PM, Lukhnos D.Liu wrote:
On Aug 26, 2008, at 6:12 AM, Lukhnos D. Liu wrote:
2. I have set up a generic output unit in a subgraph, chained the
subgraph node to the default output unit node--works fine. But then
when I connect the subgraph node to the EQ node, then EQ node to
default output unit node, there's nothing but silent. I'm totally
clueless on why this is so.
As a follow-up, I tried to fetch the last render error of the EQ
audio unit, and it gives me a 'insz' return, or
kAudioConverterErr_InvalidInputSize.
I have replaced the graphic EQ with other effect units, like pitch,
and they worked fine. Even parametric EQ works, but only graphic EQ
didn't? Why is it so? I'm still puzzled. (Also, CAShow didn't say
much, other than the nodes are connected and are both 2 channels
44.1 kHz).
Below is the stream description I fed to the generic output unit
which in turn connects to the EQ effect unit, then to the default
output unit:
destFormat.mSampleRate = 44100.0;
destFormat.mFormatID = kAudioFormatLinearPCM;
// tried a few combinations, none seemed to work:
destFormat.mFormatFlags = kLinearPCMFormatFlagIsBigEndian |
kLinearPCMFormatFlagIsSignedInteger | kAudioFormatFlagIsPacked;
destFormat.mFramesPerPacket = 1;
destFormat.mBytesPerPacket = 8;
destFormat.mBytesPerFrame = 8;
destFormat.mChannelsPerFrame = 2;
destFormat.mBitsPerChannel = 32;
destFormat.mReserved = 0;
Help is greatly appreciated.
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
_______________________________________________
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