예제 #1
0
파일: wrapper.py 프로젝트: rudresh2319/Xpra
 def __init__(self, plugin, options, codecs, volume, element_options):
     sound_subprocess_wrapper.__init__(self, "sound source")
     self.large_packets = [b"new-buffer"]
     self.command = get_full_sound_command() + [
         "_sound_record", "-", "-", plugin or "",
         format_element_options(element_options), ",".join(codecs), "",
         str(volume)
     ]
     _add_debug_args(self.command)
예제 #2
0
파일: wrapper.py 프로젝트: rudresh2319/Xpra
 def __init__(self, plugin, codec, volume, element_options):
     sound_subprocess_wrapper.__init__(self, "sound output")
     self.large_packets = [b"add_data"]
     self.codec = codec
     self.command = get_full_sound_command() + [
         "_sound_play", "-", "-", plugin or "",
         format_element_options(element_options), codec, "",
         str(volume)
     ]
     _add_debug_args(self.command)
예제 #3
0
파일: wrapper.py 프로젝트: TijZwa/xpra
 def __init__(self, plugin, options, codecs, volume, element_options):
     super().__init__("audio capture")
     self.large_packets = ["new-buffer"]
     self.command = get_full_sound_command()+[
         "_sound_record", "-", "-",
         plugin or "", format_element_options(element_options),
         ",".join(codecs), "",
         str(volume),
         ]
     _add_debug_args(self.command)
예제 #4
0
파일: wrapper.py 프로젝트: TijZwa/xpra
 def __init__(self, plugin, codec, volume, element_options):
     super().__init__("audio playback")
     self.large_packets = ["add_data"]
     self.codec = codec
     self.command = get_full_sound_command()+[
         "_sound_play", "-", "-",
         plugin or "", format_element_options(element_options),
         codec, "",
         str(volume),
         ]
     _add_debug_args(self.command)
예제 #5
0
파일: wrapper.py 프로젝트: svn2github/Xpra
 def __init__(self, plugin, options, codec, volume, element_options):
     sound_subprocess_wrapper.__init__(self, "sound output")
     self.large_packets = ["add_data"]
     self.codec = codec
     self.command = get_sound_command()+["_sound_play", "-", "-", plugin or "", format_element_options(element_options), codec, "", str(volume)]
     _add_debug_args(self.command)
예제 #6
0
파일: wrapper.py 프로젝트: svn2github/Xpra
 def __init__(self, plugin, options, codecs, volume, element_options):
     sound_subprocess_wrapper.__init__(self, "sound source")
     self.large_packets = ["new-buffer"]
     self.command = get_sound_command()+["_sound_record", "-", "-", plugin or "", format_element_options(element_options), ",".join(codecs), "", str(volume)]
     _add_debug_args(self.command)
예제 #7
0
파일: wrapper.py 프로젝트: rudresh2319/Xpra
 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()
예제 #8
0
파일: wrapper.py 프로젝트: rudresh2319/Xpra
 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()