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

Derk-Jan Hartman hartman at videolan.org
Wed Jun 9 23:23:27 CEST 2004

I think the audio device is a dynamic menu.... though i'm not really 
sure. So as soon as you edit the vars etc, the menu should update as 
well. (if not, then it should be changed to do so :)

And no, the refresh callback system isn't working on OSX. But that's 
only for preferences anyway, and this defnietly doesn't need to be 
implemented as a preference, rather as a variable system.


Gildas Bazin wrote:
> 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