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

Derk-Jan Hartman hartman at videolan.org
Fri Jun 11 11:39:19 CEST 2004


Also i was just informed that someone sent a AUHAL implementation for 
Xine to xine-devel mailinglist.

DJ

On 09 jun 2004, at 23:23, Derk-Jan Hartman wrote:

> 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.
>
> DJ
>
> 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>
>
>
---
Universiteit Twente
Derk-Jan Hartman (d.hartman at student.utwente dot nl)
http://home.student.utwente.nl/d.hartman

-- 
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