Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Building Audio Unit with Cocoa View without parameters



But Stefan, there's no dependency or requirement for a custom view - its your view for your audio unit, so it should be able to do anything based on what your AU does. You must have a bug in your view code which is expecting parameters to be there and they aren't there. What are you basing this view on? Just put a break point in the init... call and step through it when you create a view

Bill

On 30/03/2007, at 2:12 PM, Stefan Huber wrote:

Yes, using one parameter and having a Generic View with a slider is correct. In this case my Custom Cocoa view works correctly.
If I set the kNumberOfParameters = 0 - because I don't want to use any parameters - the Generic View is empty, which is also correct.
But my Custom Cocoa View just doesn' t work anymore. It is also empty - but it should still contain the image which it contained when kNumberofParameters was 1.


My problem therefore isn't how to display a picture, but it is how to end up with a working cocoa view without using any parameters.


On 27March, 2007, at 9:18 PM, William Stewart wrote:

The generic view is provided to put up a standard slider view for an AU's parameters. So, if you have no parameters, putting up a generic view that shows no UI elements is actually correct.

If you want to put up a picture, the best thing to do is to create a custom Cocoa view and just deal with it that way. Have a look in the SDK for examples (FilterDemo in/Developer/Examples/CoreAudio) for how to do a custom cocoa view

Bill

On 27/03/2007, at 5:11 AM, Stefan Huber wrote:

Hi,

I'm trying to build a Audio Unit with a Cocoa view which does not use any parameters. The View only consists of a png picture.
The problem I was running into is that when I m not using any parameter the view will not be opened correctly.
I am quite new to developing audio units, so this might be a simple issue - but I was not able to find any information relating to that problem.


In order to end up with a working Cocoa view I found, that I need the call

Globals()->UseIndexedParameters(kNumberOfParameters);

If I set the kNumberOfParameters = 0 the View will not work correctly. In the AU-Lab a Cocoa View will be displayed, but it does not contain any content.
If I set the kNumberOfParameters = 1 the Cocoa View will work correctly, but the Generic View will contain an unused Parameter.


So, the question is - what do I need to do in order to end up with a Audio Unit with a working Cocoa View and a Generic View without unused parameters.

thank you


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/coreaudio-api/bills% 40apple.com


This email sent to email@hidden

--
mailto:email@hidden
tel: +1 408 974 4056
_____________________________________________________________________ _____
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
_____________________________________________________________________ _____

_______________________________________________ Do not post admin requests to the list. They will be ignored. Coreaudio-api mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/coreaudio-api/email@hidden

This email sent to email@hidden

--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________ __
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________ __


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/coreaudio-api/email@hidden

This email sent to email@hidden
References: 
 >Building Audio Unit with Cocoa View without parameters (From: Stefan Huber <email@hidden>)
 >Re: Building Audio Unit with Cocoa View without parameters (From: William Stewart <email@hidden>)
 >Re: Building Audio Unit with Cocoa View without parameters (From: Stefan Huber <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.