Re: ANN: Transverb with AUCarbonView
Re: ANN: Transverb with AUCarbonView
- Subject: Re: ANN: Transverb with AUCarbonView
- From: Urs Heckmann <email@hidden>
- Date: Sat, 28 Dec 2002 13:43:09 +0100
Am Samstag, 28.12.02, um 03:31 Uhr (Europe/Berlin) schrieb Marc Poirier:
>
The graphics stuff at the moment is mostly working off of
>
a version of Urs Heckmann's CAUGui (albeit extremely modified), so many
>
thanks to Urs for the very helpful example code!
He he, welcome...
>
Oh yeah, and I went and removed all of my
>
direct-dsp-class-pointer-access-from-GUI stuff today (it's all
>
proper-style property stuff now), so you all can safely run the DSP and
>
GUI components on separate computers in your digital audio clusters or
>
whatever... ;)
Cool. I connected my iBook via FireWire to the G4, launched Logic on
both (one NFR + one regular, I live in comfort) and used my new offline
cluster remote AU to have the iBook control what's on the G4. Just
kiddin. Have you seriously tested this? How should it be done? Is there
any "Remote Carbon Events API"?
>
Oh, another few questions: Do any of you know if you can configure or
>
otherwise cause CGContextShowTextAtPoint to draw text right-aligned
>
instead of left-aligned?
Is in my latest version that I'm gonna make available soon. Here's the
code:
if ( textalign != 0 )
{
CGContextSetTextDrawingMode( context , kCGTextInvisible);
CGContextShowTextAtPoint(context, 0, 0, text, strlen(text));
CGPoint pt = CGContextGetTextPosition(context);
if ( textalign == 1 )
{
// center
bounds.origin.x += bounds.size.width / 2 - pt.x / 2;
}
else
{
// right
bounds.origin.x += bounds.size.width - pt.x;
}
}
CGContextSetTextDrawingMode ( context, kCGTextFill );
CGContextShowTextAtPoint(context, bounds.origin.x, bounds.origin.y,
text, strlen (text) );
Cheers,
;) Urs
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.