Re: AU from scratch
Re: AU from scratch
- Subject: Re: AU from scratch
- From: Scott Ruda <email@hidden>
- Date: Wed, 10 Dec 2003 22:56:58 -0800
On Dec 10, 2003, at 7:12 PM, William Stewart <email@hidden> wrote:
On 10/12/2003, at 1:51 PM, Scott Ruda wrote:
BTW, as a test of properties and their UIs, I did what I think should
show the RenderQuality property as a popup in the GenericView (I
supplied cases in GetPropertyInfo and GetProperty to return info for
them, set an initial value, and created a property listener for that
id). The popup kind of shows up, but the widget is cut off and half
drawn, with no Properties header shown for that section. I also don't
get any notification of a change to it in the property listener. I see
the property header and that RenderQuality popup in other Generic AU
views, so it must work, so I must be doing something wrong. Again, any
example code you can point me to would be greatly appreciated.
All you need to do is implement the RenderQuality property and it
should work. (It doesn't come up as a parameter, but in the top area of
the properties - its shown in the view for the DSLMusicDevice - and
that is appearing just because the view sees that the AU implements
this property)
I believe I have implemented that correctly. From what I can see it
looks like there may be a bug in the GenericAUView code where it only
displays the Properties header stuff and does some positioning setup
only in the case where there are >=2 properties. I only had the one
RenderQuality property implemented. Once I added a second property
(CPU_Load) the widgets show up correctly.
So how am I supposed to get notified of changes to those properties via
the GenericUI? Do I have to pick them up manually again like
parameters? I have implemented a PropertyListener callback for those
property ids, but my listener doesn't get called after changing the
values via the UI widgets. I do get called back if I manually call
SetProperty on one of those ids, so the PropertyListener seems to be
installed correctly.
Scott
_______________________________________________
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.