mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
Merge branch 'master' of ssh://rootserver/home/lennart/git/public/pulseaudio
This commit is contained in:
commit
0fcdc3d15d
2 changed files with 27 additions and 12 deletions
|
|
@ -1185,6 +1185,7 @@ endif
|
||||||
if HAVE_FFTW
|
if HAVE_FFTW
|
||||||
modlibexec_LTLIBRARIES += \
|
modlibexec_LTLIBRARIES += \
|
||||||
module-equalizer-sink.la
|
module-equalizer-sink.la
|
||||||
|
bin_SCRIPTS += utils/qpaeq
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# These are generated by an M4 script
|
# These are generated by an M4 script
|
||||||
|
|
|
||||||
|
|
@ -17,12 +17,20 @@
|
||||||
|
|
||||||
|
|
||||||
import os,math,sys
|
import os,math,sys
|
||||||
import PyQt4,sip
|
try:
|
||||||
from PyQt4 import QtGui,QtCore
|
import PyQt4,sip
|
||||||
from functools import partial
|
from PyQt4 import QtGui,QtCore
|
||||||
|
import dbus.mainloop.qt
|
||||||
|
import dbus
|
||||||
|
except ImportError,e:
|
||||||
|
print 'There was an error importing need libraries'
|
||||||
|
print 'Make sure you haveqt4 and dbus forthon installed'
|
||||||
|
print 'The error that occured was'
|
||||||
|
print '\t%s' %(str(e))
|
||||||
|
import sys
|
||||||
|
sys.exit(-1)
|
||||||
|
|
||||||
import dbus.mainloop.qt
|
from functools import partial
|
||||||
import dbus
|
|
||||||
|
|
||||||
import signal
|
import signal
|
||||||
signal.signal(signal.SIGINT, signal.SIG_DFL)
|
signal.signal(signal.SIGINT, signal.SIG_DFL)
|
||||||
|
|
@ -31,13 +39,19 @@ SYNC_TIMEOUT = 4*1000
|
||||||
CORE_PATH = "/org/pulseaudio/core1"
|
CORE_PATH = "/org/pulseaudio/core1"
|
||||||
CORE_IFACE = "org.PulseAudio.Core1"
|
CORE_IFACE = "org.PulseAudio.Core1"
|
||||||
def connect():
|
def connect():
|
||||||
if 'PULSE_DBUS_SERVER' in os.environ:
|
try:
|
||||||
address = os.environ['PULSE_DBUS_SERVER']
|
if 'PULSE_DBUS_SERVER' in os.environ:
|
||||||
else:
|
address = os.environ['PULSE_DBUS_SERVER']
|
||||||
bus = dbus.SessionBus() # Should be UserBus, but D-Bus doesn't implement that yet.
|
else:
|
||||||
server_lookup = bus.get_object('org.PulseAudio1', '/org/pulseaudio/server_lookup1')
|
bus = dbus.SessionBus() # Should be UserBus, but D-Bus doesn't implement that yet.
|
||||||
address = server_lookup.Get('org.PulseAudio.ServerLookup1', 'Address', dbus_interface='org.freedesktop.DBus.Properties')
|
server_lookup = bus.get_object('org.PulseAudio1', '/org/pulseaudio/server_lookup1')
|
||||||
return dbus.connection.Connection(address)
|
address = server_lookup.Get('org.PulseAudio.ServerLookup1', 'Address', dbus_interface='org.freedesktop.DBus.Properties')
|
||||||
|
return dbus.connection.Connection(address)
|
||||||
|
except Exception,e:
|
||||||
|
print 'There was an error connecting to pulseaudio, please make sure you have the pulseaudio dbus'
|
||||||
|
print 'and equalizer modules loaded, exiting...'
|
||||||
|
import sys
|
||||||
|
sys.exit(-1)
|
||||||
|
|
||||||
|
|
||||||
#TODO: signals: sink Filter changed, sink reconfigured (window size) (sink iface)
|
#TODO: signals: sink Filter changed, sink reconfigured (window size) (sink iface)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue