Re: auval fails PUBLISHED PARAMETER INFO test for aufx without 2in 2out.
Re: auval fails PUBLISHED PARAMETER INFO test for aufx without 2in 2out.
- Subject: Re: auval fails PUBLISHED PARAMETER INFO test for aufx without 2in 2out.
- From: Nick Mariette <email@hidden>
- Date: Thu, 25 Aug 2005 10:25:38 +1000
thanks. That fixed it.
Nick
On 25/08/2005, at 3:03 AM, Marc Poirier wrote:
It's perfectly valid, you just need to actually configure your AU
to a supported configuration to start with. AUEffectBase defaults
to initializing a 2-in/2-out configuration, and so if that is not
something that your AU supports, then you need to configure that
yourself. You could try adding this to your constructor, for example:
CreateElements();
CAStreamBasicDescription streamDesc;
streamDesc.SetCanonical(1, false);
streamDesc.mSampleRate = GetSampleRate();
Inputs().GetIOElement(0)->SetStreamFormat(streamDesc);
Outputs().GetIOElement(0)->SetStreamFormat(streamDesc);
Marc
On Aug 24, 2005, at 12:35 PM, Nick Mariette wrote:
Hello,
I'm a relative newbie at AU programming, but I'm trying to write a
1 in 1 out AU as a first step to other non N->N AUs.
I've overridden SupportedNumChannels to return sChannels[1] =
{{ 1, 1}} but when testing with auval, I get an error -10868 (ie
kAudioUnitErr_FormatNotSupported) in the section "PUBLISHED
PARAMETER INFO" with the output copied below. The line with
"!!!!!! ins: 2, outs: 2 !!!!!!!!" is an extra debug statement I
added by copying the AUEffectBase::Initialize() code and printfing
the auNumInputs and auNumOutputs.
Must every AU support 2->2?
If not, and 1->1 is legitimate, what do I need to do to properly
report unsupported formats, but avoid this failure in auval?
I'm confused... hopefully it's just something simple I'm missing
and someone can help quickly.
Nick
auval output excerpt:
PUBLISHED PARAMETER INFO:
# # # 1 Global Scope Parameters:
Parameter ID:0
Name: Parameter One
Parameter Type: Linear Gain
Values: Minimum = 0.000000, Default = 0.500000, Maximum = 1.000000
Flags: Readable, Writable
-parameter PASS
Testing that parameters retain value across reset and initialization
!!!!!! ins: 2, outs: 2 !!!!!!!!
ERROR: -10868 IN CALL AudioUnitInitialize
* * FAIL
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40smartelectronix.com
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