• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: auval fails PUBLISHED PARAMETER INFO test for aufx without 2in 2out.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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: Marc Poirier <email@hidden>
  • Date: Wed, 24 Aug 2005 13:03:43 -0400

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
  • Follow-Ups:
    • Re: auval fails PUBLISHED PARAMETER INFO test for aufx without 2in 2out.
      • From: Nick Mariette <email@hidden>
References: 
 >Re: Problem with disclosure triangle (getting close to off-topic) (From: Ian Kemmish <email@hidden>)
 >auval fails PUBLISHED PARAMETER INFO test for aufx without 2in 2out. (From: Nick Mariette <email@hidden>)

  • Prev by Date: Fwd: auval fails PUBLISHED PARAMETER INFO test for aufx without 2in 2out.
  • Next by Date: AU Cocoa Custom View resizing
  • Previous by thread: auval fails PUBLISHED PARAMETER INFO test for aufx without 2in 2out.
  • Next by thread: Re: auval fails PUBLISHED PARAMETER INFO test for aufx without 2in 2out.
  • Index(es):
    • Date
    • Thread