Audio Units fail validation, result: -50.0 & sudden problems with AUCarbonViewBase
Audio Units fail validation, result: -50.0 & sudden problems with AUCarbonViewBase
- Subject: Audio Units fail validation, result: -50.0 & sudden problems with AUCarbonViewBase
- From: Stefan Huber <email@hidden>
- Date: Fri, 09 Aug 2013 22:31:16 +0200
I was working on an Audio Unit and suddenly noticed that the au validation tool exited with an error:
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
> AU Validation Tool
> Version: 1.6.1a1
> Copyright 2003-2007, Apple, Inc. All Rights Reserved.
>
> Specify -h (-help) for command options
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
>
> --------------------------------------------------
> VALIDATING AUDIO UNIT: 'aufx' - 'AbCd' - 'PdQr'
> --------------------------------------------------
> Manufacturer String: PAudio
> AudioUnit name: PAudio_Ab
> Component Version: 1.0.0 (0x10000)
>
> * * PASS
> --------------------------------------------------
> TESTING OPEN TIMES:
> COLD:
> FATAL ERROR: OpenAComponent: result: -50,0xFFFFFFCE
I am still working on 10.6.8 and xcode 3.2 (I think the exact version has been 3.2.4). When that error occurred I was just updating the size of my view (I use the VSTGUI framework) and adding some resources (just png images). So, actually nothing that should case an error like this. I haven't been able to find any clue about what was causing that error. Even reverting everything I had changed, did not make a difference.
As I have previously been struggling with some problems related to the debugger for quite some time, I decided it was worth a try to install the more recent xcode 3.2.6. Unfortunately, that didn't change anything, so I started to create a new project from the audio unit template and rebuilt my code. Everything went well until I added the Carbon View. Suddenly the validation failed again with the same result. So, I cleaned the project again and had the compiler build it again. However, now the compiler quit with errors when trying to resolve certain carbon related functions (for instance DisposeControl - I am posting the whole output below).
As I found that this is rather weird, I decided to open an older project, which I haven't touched for quite some time and that already had been released. Surprisingly, after building the audio unit, the validation exited with the same error. After cleaning the project and compiling it again, it ended up with the exact same compiler errors as with my new project...
So, in the end I have no clue why suddenly none of my audio units wont build any more.
Has there been any change recently? Everything still was working fine a few weeks ago.
I don't think there is a problem with my code, as this errors suddenly even occur with older projects, that worked fine until now.
Probably something else with my system has changed, that I am not aware of, but honestly I don't have a clue at the moment where to look at. I have even tried to reinstall xcode 3.2.4, but that did not change anything.
Does anyone have any idea why the compiler is not able to resolve the carbon related functions?
I have been adding
#include "Controls.h"
to AUCarbonViewBase.cpp, just to see if it would make a difference, but the errors are still exactly the same. That doesn't make much sense to me at the moment.
Is there any way to get more verbose information from the AU Validation Tool?
Thanks,
Stefan
> /Developer/Extras/CoreAudio/AudioUnits/AUPublic/AUCarbonViewBase/AUCarbonViewBase.cpp:69:0 /Developer/Extras/CoreAudio/AudioUnits/AUPublic/AUCarbonViewBase/AUCarbonViewBase.cpp:69: error: 'DisposeControl' was not declared in this scope
>
>
> /Developer/Extras/CoreAudio/AudioUnits/AUPublic/AUCarbonViewBase/AUCarbonViewBase.cpp:129:0 /Developer/Extras/CoreAudio/AudioUnits/AUPublic/AUCarbonViewBase/AUCarbonViewBase.cpp:129: error: 'GetWindowAttributes' was not declared in this scope
>
>
> /Developer/Extras/CoreAudio/AudioUnits/AUPublic/AUCarbonViewBase/AUCarbonViewBase.cpp:135:0 /Developer/Extras/CoreAudio/AudioUnits/AUPublic/AUCarbonViewBase/AUCarbonViewBase.cpp:135: error: '::CreateUserPaneControl' has not been declared
>
>
> /Developer/Extras/CoreAudio/AudioUnits/AUPublic/AUCarbonViewBase/AUCarbonViewBase.cpp:146:0 /Developer/Extras/CoreAudio/AudioUnits/AUPublic/AUCarbonViewBase/AUCarbonViewBase.cpp:146: error: 'GetControlEventTarget' was not declared in this scope
>
>
> /Developer/Extras/CoreAudio/AudioUnits/AUPublic/AUCarbonViewBase/AUCarbonViewBase.cpp:149:0 /Developer/Extras/CoreAudio/AudioUnits/AUPublic/AUCarbonViewBase/AUCarbonViewBase.cpp:149: error: '::HIViewAddSubview' has not been declared
>
>
> /Developer/Extras/CoreAudio/AudioUnits/AUPublic/AUCarbonViewBase/AUCarbonViewBase.cpp:154:0 /Developer/Extras/CoreAudio/AudioUnits/AUPublic/AUCarbonViewBase/AUCarbonViewBase.cpp:154: error: '::EmbedControl' has not been declared
>
>
> /Developer/Extras/CoreAudio/AudioUnits/AUPublic/AUCarbonViewBase/AUCarbonViewBase.cpp:160:0 /Developer/Extras/CoreAudio/AudioUnits/AUPublic/AUCarbonViewBase/AUCarbonViewBase.cpp:160: error: 'SizeControl' was not declared in this scope
>
>
> /Developer/Extras/CoreAudio/AudioUnits/AUPublic/AUCarbonViewBase/AUCarbonViewBase.cpp:169:0 /Developer/Extras/CoreAudio/AudioUnits/AUPublic/AUCarbonViewBase/AUCarbonViewBase.cpp:169: error: 'GetControlBounds' was not declared in this scope
>
>
> /Developer/Extras/CoreAudio/AudioUnits/AUPublic/AUCarbonViewBase/AUCarbonViewBase.cpp:199:0 /Developer/Extras/CoreAudio/AudioUnits/AUPublic/AUCarbonViewBase/AUCarbonViewBase.cpp:199: error: '::GetControlBounds' has not been declared
>
>
> /Developer/Extras/CoreAudio/AudioUnits/AUPublic/AUCarbonViewBase/AUCarbonViewBase.cpp:204:0 /Developer/Extras/CoreAudio/AudioUnits/AUPublic/AUCarbonViewBase/AUCarbonViewBase.cpp:204: error: '::HIViewAddSubview' has not been declared
>
>
> /Developer/Extras/CoreAudio/AudioUnits/AUPublic/AUCarbonViewBase/AUCarbonViewBase.cpp:206:0 /Developer/Extras/CoreAudio/AudioUnits/AUPublic/AUCarbonViewBase/AUCarbonViewBase.cpp:206: error: '::EmbedControl' has not been declared
>
>
> /Developer/Extras/CoreAudio/AudioUnits/AUPublic/AUCarbonViewBase/AUCarbonViewBase.cpp:231:0 /Developer/Extras/CoreAudio/AudioUnits/AUPublic/AUCarbonViewBase/AUCarbonViewBase.cpp:231: error: 'ClearKeyboardFocus' was not declared in this scope
>
>
> /Developer/Extras/CoreAudio/AudioUnits/AUPublic/AUCarbonViewBase/AUCarbonViewBase.cpp:255:0 /Developer/Extras/CoreAudio/AudioUnits/AUPublic/AUCarbonViewBase/AUCarbonViewBase.cpp:255: error: 'HIViewGetSuperview' was not declared in this scope
>
>
> /Developer/Extras/CoreAudio/AudioUnits/AUPublic/AUCarbonViewBase/AUCarbonViewBase.cpp:257:0 /Developer/Extras/CoreAudio/AudioUnits/AUPublic/AUCarbonViewBase/AUCarbonViewBase.cpp:257: error: 'HIViewGetBounds' was not declared in this scope
>
>
> /Developer/Extras/CoreAudio/AudioUnits/AUPublic/AUCarbonViewBase/AUCarbonViewBase.cpp:303:0 /Developer/Extras/CoreAudio/AudioUnits/AUPublic/AUCarbonViewBase/AUCarbonViewBase.cpp:303: error: 'HIViewScrollRect' was not declared in this scope
>
>
> /Developer/Extras/CoreAudio/AudioUnits/AUPublic/AUCarbonViewBase/AUCarbonViewBase.cpp:305:0 /Developer/Extras/CoreAudio/AudioUnits/AUPublic/AUCarbonViewBase/AUCarbonViewBase.cpp:305: error: 'HIViewSetBoundsOrigin' was not declared in this scope
_______________________________________________
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