[vlc-devel] [PATCH] Added new config parameter "alsa-preferred-layout" to allow preselection of speaker layout when playing media files.

Marcus Schmid doc at lanaticasylum.de
Sat Oct 11 20:08:32 CEST 2008


On Sat, 11 Oct 2008, Christophe Mutricy wrote:

> Couldn't it be a general audio option that would have to be implemented
> in all aout (or at least aout where multichannel makes sense)

Actually, that also came to my mind; unfortunately, I'm new to vlc
sources, and I didn't have the time today to step through all the
necessary files to gather the changes that need to be done for this, so I
just wrote the necessary changes for the ALSA module I'm using.

While looking at the source, it seems to me that such a "global" parameter
would either result in changes of all the audio output modules (-> quite
some work, I'd guess) or - what I couldn't check yet - somewhere after a
output module got opened (which would most probably be less work-intense),
i.e.:

a) open audio output module
b) step through the list of available speaker layouts
c) if our preferred one is in this list, select it - otherwise keep
   the module's default

But missing knowledge of the vlc source parts I'd have to touch made me
change just the ALSA module, not trying to pursue the idea above.

--
Marcus Schmid



More information about the vlc-devel mailing list