[vlc-devel] Aout3 unfinished work

Christophe Massiot massiot at via.ecp.fr
Sun Dec 8 00:12:13 CET 2002

Aout3 API can now be considered stable. However, all new features of 
aout3 have not yet been implemented into interface plug-ins. 
Actually, only the macosx and rc plug-ins are up-to-date.

There is not much that needs to be done because the API has been 
written to be as simple as possible, but I really need intf 
maintainers to take that into account.

First, the intf needs to provide hook to volume management functions. 
These are very simple :

int aout_VolumeGet( aout_instance_t * p_aout, audio_volume_t * pi_volume );
int aout_VolumeSet( aout_instance_t * p_aout, audio_volume_t i_volume );
int aout_VolumeInfos( aout_instance_t * p_aout, audio_volume_t * pi_soft );
int aout_VolumeUp( aout_instance_t * p_aout, int i_nb_steps,
                    audio_volume_t * pi_volume );
int aout_VolumeDown( aout_instance_t * p_aout, int i_nb_steps,
                      audio_volume_t * pi_volume );
int aout_VolumeMute( aout_instance_t * p_aout, audio_volume_t * pi_volume );

These functions are already documented in the developer 
documentation. It might be a good idea to provide a slider to select 
the output volume.

Second, the audio output provides three variables to select the audio 
output device and the channels configuration. Example code can be 
found in the rc (AudioConfig()) and macosx plug-ins. "audio-device" 
and "audio-channels" contain a list of possible devices and channels 
configurations. "intf-change" is a boolean which, when set to 1, 
indicates that the intf menus need to be rebuilt.

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

More information about the vlc-devel mailing list