CAUGui example wont compile under CA sdk 1.3.4

Official support for: u-he.com
Post Reply New Topic
RELATED
PRODUCTS

Post

Hey Urs, your example for the CAUGui wont compile under the latest sdk update from apple. Any suggestions on how I can fix this ??

Thanks

Post

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

Post

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. :(

Post

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.
Dude, be careful with type casts here...

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 }
	};
Hope this helps...

;) Urs

Post

Oh, it looks a bit scattered. Please note the 0 before the ClumpID in each row...

Cheers,

;) Urs

Post

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 :(

Post

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

Post

Oh... one thing... do you use a Compositing Window? - I guess that might confuse soem coordinates or some Draw1Control()s are missing...

;) Urs

Post

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.

Post

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

Post Reply

Return to “u-he”