• 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: Channels and frames
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Channels and frames


  • Subject: Re: Channels and frames
  • From: "john smith" <email@hidden>
  • Date: Sat, 05 Nov 2005 11:06:57 +0100


William,

You published supported num channels of { 1, 1 }; yet your default configuration for you input and output bus is stereo. Your AU is saying it doesn't support stereo.

We've already discussed this - in your constructor you have to call CreateElements()

I'm doing that already.

and set the formats on the input and elements

How do I do that?

, and this is the example (exactly actually as it only supports mono in/ out) that the Pulse Detector AU uses in the SDK (which you said you didn't want to download).

Oh, no, I didn't say that. I said I was afraid to install a new SDK, since I have very bad experience with upgrading parts on a developer machine.


Surely the example can be made available, without the need for upgrading the SDK?


Or maybe you can just tell me what it is that needs to be done. It's not like I seem to be the only one who doesn't understand any of this.


Anyway, it's not too important, I don't expect to make any plug-in which doesn't support 2,2 (and supporting that should fix the problem, right?). I do however plan to make 0,2 plug-ins (synths), so if the problem will come back when doing tat, then I might as well be informed about how to do it right away.

What I would rather like to know is how to access the inputs from the second bus I have, and also how to check if the bus is activated by the host. I described how I thought it to be, but noone wanted to verify it.
Btw., IMHO (and I don't want to start a discussion here), AU could benefit from a reference host. Then I could check such info by seeing how the ref host reacts, instead of having to waste your time verifying it.



Thanks,

Michael Olsen


Bill

On 04/11/2005, at 8:21 AM, john smith wrote:


Argh, just when I thought I understood this channel business, it appears I didn't understand anything at all.


Logics AU manager is giving me this text:

_____

 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  * * *
        AU Validation Tool
        Version: 1.1.1b11
        Copyright 2003-4, Apple Computer, Inc.

        Specify -h (-help) for command options
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  * * *

--------------------------------------------------
VALIDATING AUDIO UNIT: 'aufx' - 'EFFT' - 'KJAU'
--------------------------------------------------
Manufacturer String: Kjaerhus Audio
AudioUnit name: Classic Chorus
Component Info: AU AU
Component Version: 1.0.0 (0x10000)

* * PASS
--------------------------------------------------
TESTING OPEN TIMES:
COLD:
Time to open AudioUnit:           35.041ms
WARM:
Time to open AudioUnit:           0.424ms

* * PASS
--------------------------------------------------
VERIFYING DEFAULT SCOPE FORMATS:
Input Scope Bus Configuration:
Default Bus Count:1
Default Format: AudioStreamBasicDescription: 2 ch, 44100 Hz, 'lpcm' (0x0000002B) 32-bit big-endian float, deinterleaved


Output Scope Bus Configuration:
Default Bus Count:1
Default Format: AudioStreamBasicDescription: 2 ch, 44100 Hz, 'lpcm' (0x0000002B) 32-bit big-endian float, deinterleaved


ERROR: Default Format of unit does not match reported Channel handling capabilities
* * FAIL
--------------------------------------------------
VERIFYING REQUIRED PROPERTIES:
VERIFYING PROPERTY: Sample Rate
PASS
VERIFYING PROPERTY: Stream Format
PASS
VERIFYING PROPERTY: Maximum Frames Per Slice
PASS
VERIFYING PROPERTY: Last Render Error
PASS


* * PASS
--------------------------------------------------
VERIFYING RECOMMENDED PROPERTIES:
 VERIFYING PROPERTY: Latency
   PASS
 VERIFYING PROPERTY: Tail Time
WARNING: Recommended Property is not supported

 VERIFYING PROPERTY: Bypass Effect
   PASS

* * PASS
--------------------------------------------------
VERIFYING OPTIONAL PROPERTIES:
 VERIFYING PROPERTY Supported Number of Channels
   PASS
 VERIFYING PROPERTY Host Callbacks
   PASS

* * PASS
--------------------------------------------------
VERIFYING SPECIAL PROPERTIES:

VERIFYING CUSTOM UI
Carbon View Components Available: 1
 Component 'auvw' - 'EFFT' - 'KJAU'
   PASS

Cocoa Views Available: 0

VERIFYING CLASS INFO
   PASS

TESTING HOST CALLBACKS
   PASS

* * PASS
--------------------------------------------------
PUBLISHED PARAMETER INFO:

# # # 8 Global Scope Parameters:
WARNING: PARAMETER SHOULD PUBLISH NAME AS CFString
WARNING: PARAMETER SHOULD PUBLISH NAME AS CFString
WARNING: PARAMETER SHOULD PUBLISH NAME AS CFString
WARNING: PARAMETER SHOULD PUBLISH NAME AS CFString
WARNING: PARAMETER SHOULD PUBLISH NAME AS CFString
WARNING: PARAMETER SHOULD PUBLISH NAME AS CFString
WARNING: PARAMETER SHOULD PUBLISH NAME AS CFString
WARNING: PARAMETER SHOULD PUBLISH NAME AS CFString
ERROR: -10868 IN CALL AudioUnitInitialize

* * FAIL
--------------------------------------------------
FORMAT TESTS:

Input/Output Channel Handling:
1-1 1-2 1-4 1-5 2-2 2-4 2-5 4-4 4-5 5-5 5-2 6-6 8-8
X
ERROR: Unit now reports it cannot support default channel configuration (it previously reported that it did): in:2, out:2
ERROR: -10868 IN CALL Cannot Initialize Unit to valid num channels:InputChan:2, OutputChan:2
ERROR: Unit incorrectly set to InputChans:3 OutputChans:1


* * FAIL
--------------------------------------------------
RENDER TESTS:
ERROR:   Format errors. Cannot perform render tests


* * FAIL -------------------------------------------------- AU VALIDATION FAILED: CORRECT THE ERRORS ABOVE. --------------------------------------------------

_____

How is this error possible? The only change I made was that I now override GetNumChannels, and return 1 configuration, which is 1,1.
From what I gathered on this list, that was all I needed to do. Gosh, now I'm really confused.



Thanks,

Michael Olsen

_________________________________________________________________
Don't just search. Find. Check out the new MSN Search! http:// search.msn.com/



-- mailto:email@hidden tel: +1 408 974 4056 ________________________________________________________________________ __ "Much human ingenuity has gone into finding the ultimate Before. The current state of knowledge can be summarized thus: In the beginning, there was nothing, which exploded" - Terry Pratchett ________________________________________________________________________ __


_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


_______________________________________________
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:
    • Reference AU host, was Re: Channels and frames
      • From: Stefan Gretscher <email@hidden>
References: 
 >Re: Channels and frames (From: William Stewart <email@hidden>)

  • Prev by Date: Re: Channels and frames
  • Next by Date: Re: ClassInfo & PresentPreset confusion
  • Previous by thread: Re: Channels and frames
  • Next by thread: Reference AU host, was Re: Channels and frames
  • Index(es):
    • Date
    • Thread