Displaying an AudioUnitCarbonView in a Cocoa application?
Displaying an AudioUnitCarbonView in a Cocoa application?
- Subject: Displaying an AudioUnitCarbonView in a Cocoa application?
- From: Per Bull Holmen <email@hidden>
- Date: Thu, 10 Jun 2010 11:05:35 -0700 (PDT)
Hi
Can someone please help me explain what I'm doing wrong. I'm trying, in a Cocoa application, to open up a window to display an AudioUnit's custom view. The Audio Unit only has a carbon UI, and I am completely new to Carbon. Is it possible to display a window with a Carbon UI, in a Cocoa app??
I have made a piece of code which works fine with Apple's DLS synth, but not with a third party Music Device. With the third party's AU, the UI window comes up on the screen, but doesn't respond to mouse clicks at all. I can't move any of the sliders or get any visual response to mouse clicks. The AudioUnit parameter passed to the function seems valid, everything else works fine, and with AUGenericView and the same AudioUnit I can change parameters and change the sound.
The third party device doesn't use Apple's standard widgets, it seems the graphic UI is programmed from ground up (or something like that). Here is the code:
http://www.pastebin.org/323188
When this didn't work, I tried to avoid using NSWindow at all, and create a Carbon window with CreateNewWindow. I had to find some code on the net, which I have changed a bit. It still works with Apple's DLS synth, but not with the third party device. In this case the window won't come up on screen at all:
http://www.pastebin.org/323195
The third party device is Crystal soft synth, from Green Oak Software. Last time I had a similar problem (something worked on DLS synth but not on Crystal), and it turned out I had made a silly mistake in the code. If you can't see anything wrong with the code, please tell me too, then I might check with the developer. I don't have other third party Music Device's to test with.
Per
_______________________________________________
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