CAUGui example wont compile under CA sdk 1.3.4
- u-he
- 30208 posts since 8 Aug, 2002 from Berlin
Yeah... sorry for that...
Apple has extended the AUParameterInfo struct. It now has 2 more members between the cstring name and the CFString name. Just add them and you're done.
If it doesn't work, I can look into it, but only after Musikmesse (next week).
Cheers,
Urs
Apple has extended the AUParameterInfo struct. It now has 2 more members between the cstring name and the CFString name. Just add them and you're done.
If it doesn't work, I can look into it, but only after Musikmesse (next week).
Cheers,
-
- KVRist
- Topic Starter
- 47 posts since 3 Oct, 2004
Actually it turns out the reason it wasnt compiling was because xcode didnt like not having a CFSTR("name of control") (or a char cast) in the first argument of each AUParameterInfo.
But, when I load up the example in live or logic none of the controls work. As in, all the buttons are missing. It still registers the meters though. Its as if the control -> interface communication was lost somehow. :(
But, when I load up the example in live or logic none of the controls work. As in, all the buttons are missing. It still registers the meters though. Its as if the control -> interface communication was lost somehow. :(
- u-he
- 30208 posts since 8 Aug, 2002 from Berlin
Dude, be careful with type casts here...cthmusic wrote:Actually it turns out the reason it wasnt compiling was because xcode didnt like not having a CFSTR("name of control") (or a char cast) in the first argument of each AUParameterInfo.
Here's how it should look like:
Code: Select all
static const AudioUnitParameterInfo asParInfo[]=
{
// Name Clumps CFStr Unit Min Max Default Flags
{ "Knob_1", 0, 1, CFSTR("Knob_1"), kGeneric, 0.0f, 100.0f, 50.0f, rw_flag },
{ "Knob_2", 0, 1, CFSTR("Knob_2"), kGeneric, 0.0f, 127.0f, 0.0f, rw_flag },
{ "Buttons_1", 0, 2, CFSTR("Buttons_1"), kIndexed, 0.0f, 4.0f, 0.0f, rw_flag },
{ "Buttons_2", 0, 2, CFSTR("Buttons_2"), kIndexed, 0.0f, 8.0f, 0.0f, rw_flag },
{ "Slider_1", 0, 3, CFSTR("Slider_1"), kGeneric, 0.0f, 100.0f, 0.0f, rw_flag },
{ "Slider_2", 0, 3, CFSTR("Slider_2"), kGeneric, 0.0f, 100.0f, 0.0f, rw_flag },
{ "Slider_3", 0, 3, CFSTR("Slider_3"), kGeneric, 0.0f, 100.0f, 50.0f, rw_flag },
{ "Display_1", 0, 4, CFSTR("Display_1"), kIndexed, 0.0f, 7.0f, 0.0f, rw_flag },
// -----------------------------------------------------
{ "<noname>", 0, 0, 0, 0.0f, 0.0f, 0.0f, 0 }
};
- u-he
- 30208 posts since 8 Aug, 2002 from Berlin
Oh, it looks a bit scattered. Please note the 0 before the ClumpID in each row...
Cheers,
Urs
Cheers,
-
- KVRist
- Topic Starter
- 47 posts since 3 Oct, 2004
I can get it to compile but the problem lies when I load it up. None of the controls show up. Just there backgrounds. But, the meters still register. Must be something internal in the way CAUGui handles the control registering.
BTW, Thanks for all your help! I'd really rather use your Gui SDK than have to hardcode it or build my own :(
BTW, Thanks for all your help! I'd really rather use your Gui SDK than have to hardcode it or build my own :(
- u-he
- 30208 posts since 8 Aug, 2002 from Berlin
Hmmm...
I will migrate it to XCode 1.5 and latest CA SDK soon. I've just seen that I'm still on XCode 1.1 which is pretty untolerable
Cheers,
Urs
I will migrate it to XCode 1.5 and latest CA SDK soon. I've just seen that I'm still on XCode 1.1 which is pretty untolerable
Cheers,
- u-he
- 30208 posts since 8 Aug, 2002 from Berlin
Oh... one thing... do you use a Compositing Window? - I guess that might confuse soem coordinates or some Draw1Control()s are missing...
Urs
-
- KVRist
- Topic Starter
- 47 posts since 3 Oct, 2004
Sorry, Im relatively new to OS X coding. Im using the budled example project for CAUGui SDK in XCode 1.1, so Im not sure if Im using a compositing window or not ... I'll d/l 1.5 and see if it helps at all too.
- u-he
- 30208 posts since 8 Aug, 2002 from Berlin
Compositing Windows would be what the host gives to you. So, my question basically was, which host do you use for testing 
XCode 1.1 should be fine. This is what I use.
Can you send me a screenshot to urs at u-he.com? I'd like to see what exactly you mean...
Cheers,
Urs
XCode 1.1 should be fine. This is what I use.
Can you send me a screenshot to urs at u-he.com? I'd like to see what exactly you mean...
Cheers,
