[vlc-devel] Re: [MOD] Mac OSX multichannel patch

Gildas Bazin gbazin at altern.org
Wed Jun 9 10:31:56 CEST 2004


On Wednesday 09 June 2004 09:19, Matthew Romaine wrote:
> 
> My problem with modifying the UI is as follows:  is there a way to 
> dynamically update a drop-down list of options after a function in a 
> module is called?  More specifically, coreaudio.c's vlc_module_begin() 
> section is executed before the Open() function, but it is not until 
> *after* the Open function is executed do I know what to put into a list 
> of options.  What is the suggested remedy to this?  I tried inserting a 
> callback for add_string and change_action_add, but it looks like 
> callbacks are not yet supported?
> 

change_action_add() allows you to add an "action" button to the config panel 
of one module. The callback associated with that action should be triggered 
if the button is pressed by the user... unfortunately I doubt these 
"action" buttons are supported yet in the OSX interface (they are in the 
wxWindows interface). The callback can then update the list of choices 
associated with a config option for instance.

Now if you just want a function that is called just once when the module is 
loaded and builds a list of available devices, then just having a function 
that you call in the vlc_module_begin() section and that builds the string 
array passed to change_string_list() could be enough.

--
Gildas

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html
If you are in trouble, please contact <postmaster at videolan.org>



More information about the vlc-devel mailing list