/usr/share/veromix/dbus-service/pulseaudio/PulseClient.py is in veromix-common 0.18.3-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | # -*- coding: utf-8 -*-
# Copyright (C) 2010-2012 Nik Lutz <nik.lutz@gmail.com>
# Copyright (C) 2009 Harry Karvonen <harry.karvonen@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from .lib_pulseaudio import *
# This class contains all basic client features
class PulseClient:
def __init__(self, name, index = 0):
self.index = index
self.name = name
return
###
def printDebug(self):
print("self.index:", self.index)
print("self.name:", self.name)
return
###
def __str__(self):
return "Client-ID: " + str(self.index) + ", Name: \"" + self.name + "\""
################################################################################
# This class is used with Ctypes
class PulseClientCtypes(PulseClient):
def __init__(self, pa_client):
PulseClient.__init__(self, pa_client.name, pa_client.index)
self.owner_module = pa_client.owner_module
self.driver = pa_client.driver
#self.proplist = pa_sink_input_info.proplist
return
###
def printDebug(self):
print("PulseClientCtypes")
PulseClient.printDebug(self)
print("self.owner_module:", self.owner_module)
print("self.driver:", self.driver)
#print "self.proplist:", self.proplist
return
|