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 05:21:05 +0800
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