[pulseaudio-discuss] What's the relation ship between mapping prio and sink prio
Tanu Kaskinen
tanuk at iki.fi
Mon Jan 30 22:33:51 PST 2012
On Tue, 2012-01-31 at 09:43 +0800, Feng Wei wrote:
> 2012/1/30 Tanu Kaskinen <tanuk at iki.fi>:
> > On Mon, 2012-01-30 at 11:08 +0800, Feng Wei wrote:
> >> I just want something to be default sink out of the box before any
> >> default sink is specified.
> >
> > Would "set-default-sink foo" in /etc/pulse/default.pa be a suitable
> > solution for you?
> I'm not sure because that way will always set a certain sink as
> default every time booting up, even if some user update the default
> sink. IMO, if someone change the default sink, PA will take the new
> sink as default sink next time startup.
I see. One solution would be to add a "factory_settings" module argument
to module-default-device-restore: if no database file exists when the
module is loaded, it would read the initial database from the factory
settings file.
I'd like that solution (I'm sure there are many alternatives), because I
think such functionality is really needed for the various restore
modules. In Maemo we needed that for module-stream-restore, so there's
now the fallback_table module argument. I don't like the implementation
details too much, though - I think "factory_settings" would be a more
descriptive argument name, and the file format could be better (there
are several things that module-stream-restore handles, but the fallback
table can only configure volumes). The ini-style format of the general
configuration parser could probably be used.
--
Tanu
More information about the pulseaudio-discuss
mailing list