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)
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)
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)
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)
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)
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)
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()
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()