Beispiel #1
0
 def __init__(self, plugin, options, codec, volume, element_options):
     from xpra.sound.gstreamer_util import format_element_options
     sound_subprocess_wrapper.__init__(self, "sound-sink")
     self.large_packets = ["add_data"]
     self.codec = codec
     self.command = [get_sound_executable(), "_sound_play", "-", "-", plugin or "", format_element_options(element_options), codec, "", str(volume)]
     self._add_debug_args()
Beispiel #2
0
 def __init__(self, plugin, options, codecs, volume, element_options):
     from xpra.sound.gstreamer_util import format_element_options
     sound_subprocess_wrapper.__init__(self, "sound-source")
     self.large_packets = ["new-buffer"]
     self.command = [get_sound_executable(), "_sound_record", "-", "-", plugin or "", format_element_options(element_options), ",".join(codecs), "", str(volume)]
     self._add_debug_args()