Commit Graph

22 Commits

Author SHA1 Message Date
Nedko Arnaudov b1ec48747c Revert "Solving problems while compiling jack2 on macOS X with dbus support (#434)"
Reduce code bloat by removing support of non-libre operating system

This reverts commit bb3f5cb296.
2023-11-18 16:49:40 +02:00
Nedko Arnaudov 2fbd7ace76 dbus/controller.c: Use jackctl_server_create() instead of jackctl_server_create2()
This is mort portable across jack1 and jack2. jackctl_server_create2() is jackd.exe specific and has no purpose for jackdbus.
2023-07-22 06:44:36 +03:00
falkTX f19176657c Fix blocking DBus device reservation, so it plays nice with others 2019-10-28 11:16:09 +01:00
shura bb3f5cb296 Solving problems while compiling jack2 on macOS X with dbus support (#434)
* Solving problems while compiling jack2 on macOS X with dbus support

* Using the right function name in uptime error
2019-02-24 18:09:47 +01:00
Nedko Arnaudov 6414cd9dbf Improved error reporting in device reservation code
rd_acquire() error handling is adjusted to match libdbus error
handling convention:
 * Initialize error before calling rd_acquire()
 * Free dbus error on rd_acquire() failures
 * Always set dbus error on rd_acquire failures, except for
   detected programming errors that now cause taboo assert.
2012-11-24 05:12:35 +02:00
nedko 7bbe5971bf jackdbus: group batch of saves into one
When a parameter is set, jackdbus used to save immediately.
This was quite annoying and ineffective when configuring
lot of parameters without delay. It caused log line to appear
for each parameter set and xml file serialization as well.

This changeset implements delayed save. Parameters are saved
two seconds after last parameter set.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4583 0c269be4-1314-0410-8aa9-9f06e86f4224
2011-11-12 19:23:44 +00:00
Nedko Arnaudov 0f439c74dd jackdbus: implement session command queue 2011-08-11 08:33:34 +03:00
Nedko Arnaudov 94eea6f4dd jackdbus: SessionManager interface 2011-07-21 00:35:21 +03:00
sletz 00fc09b3b8 Make switchmaster a bit more robust.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4394 0c269be4-1314-0410-8aa9-9f06e86f4224
2011-05-25 13:44:45 +00:00
nedko 5cc529d9cf jackdbus: slave-drivers parameter
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4317 0c269be4-1314-0410-8aa9-9f06e86f4224
2011-04-17 21:52:26 +00:00
nedko 1d06e19943 jackdbus: remove dead prototypes and functions
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4316 0c269be4-1314-0410-8aa9-9f06e86f4224
2011-04-17 18:27:49 +00:00
nedko 343a0e8069 jackdbus: params store
This changeset removes code duplication that was caused by lack of
unified access to parameters in the control API. Adding new virtual
parameters should be much easier now.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4315 0c269be4-1314-0410-8aa9-9f06e86f4224
2011-04-17 18:18:32 +00:00
nedko 49dffe6226 jackdbus: fix slave driver support
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4292 0c269be4-1314-0410-8aa9-9f06e86f4224
2011-04-09 23:09:25 +00:00
Devin Anderson db132e1974 Update server control API with jackctl_server_open and jackctl_server_close (see http://trac.jackaudio.org/ticket/219 for rationale). Update drivers to support Start/Stop of slave drivers. Update dbus to use new jackctl_server_* functions. Freewheel driver is no longer an implicit slave of the master audio driver. Haven't tested freewheeling, and didn't update Solaris OSS driver. Tested slave addition by adding loopback driver, but don't have a slave driver in this branch on Linux platform to test with. 2011-03-20 22:39:31 -07:00
Nedko Arnaudov d1090f0ddf jackdbus: dont emit spurious signals. Fix for #174
When server is already in target state, there is no state change
and thus signal for state change should not be emitted
2010-05-10 03:11:24 +03:00
Nedko Arnaudov becacb17a4 jackdbus: improved handling of server start/stop failures
* Don't override detailed error string with generic one
 * Set the D-Bus reply error in case of jackctl_server_stop() failure
 * Set the D-Bus reply error in case of jack_controller_patchbay_init() failure
 * Don't set the D-Bus reply error in case of jack_deactivate() failure because
   this failure does not cause jack_controller_stop_server() failure and thus
   will cause memory leak.
2010-05-10 02:58:59 +03:00
sletz 56f4d13ecb In combined --dbus and --classic compilation ode, use PulseAudio acquire/release code.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3603 0c269be4-1314-0410-8aa9-9f06e86f4224
2009-07-16 10:32:15 +00:00
nedko 3aa9b525c3 Move dbus device reservation code to jackdbus
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3579 0c269be4-1314-0410-8aa9-9f06e86f4224
2009-07-07 17:18:11 +00:00
sletz 51f6a07821 D-Bus access for jackctl_server_add_slave/jackctl_server_remove_slave API.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3530 0c269be4-1314-0410-8aa9-9f06e86f4224
2009-05-06 14:58:37 +00:00
sletz c972442a7c D-Bus control for switch master API.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3519 0c269be4-1314-0410-8aa9-9f06e86f4224
2009-04-22 13:53:16 +00:00
nedko 4f871f28c7 Refactor dbus configure interface; always have a selected driver, default one
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3018 0c269be4-1314-0410-8aa9-9f06e86f4224
2008-10-19 20:46:35 +00:00
sletz 3e01068967 Merge Michael Voigt drops branch after reorganization step.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2880 0c269be4-1314-0410-8aa9-9f06e86f4224
2008-09-05 13:36:28 +00:00