root/trunk/libffado/support/mixer-qt4/ffado/config.py.in

Revision 2670, 0.9 kB (checked in by jwoithe, 7 years ago)

Add the "-b" / "--bypassdbus" command line option to ffado-mixer. If given,
no communication with ffado-dbus-server will be attempted. Instead, an
instance of each supported mixer module will be created with stubs providing
placeholder values in place of values obtained from hardware. This permits
rudimentary debugging of mixer modules for interfaces which the developer
does not have on hand.

This commit amounts to a minor rework of a patch originally submitted by
Xavier Forestier as part of a large series which is being slowly merged:

https://sourceforge.net/p/ffado/mailman/message/35457569/.

The most significant difference is that the bypassdbus functionality in
Xavier's patch was a compile option whereas the commit implements it as a
runtime option. It is felt that this will make things easier for developers
in the long run: mixer modules can be tested without having to reconfigure
ffado from source. Minor bug fixes were applied to the patch as it was
reworked.

Thanks to Xavier Forestier for the original patch.

  • Property svn:mergeinfo set to
Line 
1 # -*- coding: utf-8 -*-
2 REGISTER_URL = '$REGISTRATION_URL'
3 INI_FILE_PATH = "$CONFIGDIR/registration.ini"
4
5 FFADO_CONFIG_DIR = "$CONFIGDIR"
6
7 FFADO_VERSION="$VERSION-$REVISION"
8
9 FFADO_DBUS_SERVER = 'org.ffado.Control'
10 FFADO_DBUS_BASEPATH = '/org/ffado/Control'
11
12 POLL_SLEEP_TIME_MSEC = 100 # 100ms
13
14 PYTHONDIR = "$PYPKGDIR"
15 SHAREDIR = "$SHAREDIR"
16
17 USER_CONFIG_FILE = "$USER_CONFIG_FILE"
18 SYSTEM_CONFIG_FILE = "$SYSTEM_CONFIG_FILE"
19
20 DEBUG = $DEBUG
21
22 # If set true it will open all mixers
23 bypassdbus = False
24
25 UIDIR = PYTHONDIR
26 import os.path
27 if os.path.exists('support/mixer-qt4/ffado/mixer/globalmixer.ui'):
28     UIDIR = "support/mixer-qt4"
29 if os.path.exists('ffado/mixer/globalmixer.ui'):
30     UIDIR = "."
31
32 import os.path
33 from PyQt4 import uic
34 def uicLoad(file, object):
35     if not file.endswith(".ui"):
36         file += ".ui"
37     uic.loadUi(os.path.join(UIDIR,file), object)
38
39 # vim: et
Note: See TracBrowser for help on using the browser.