diff --git a/src/xpra/sound/sink.py b/src/xpra/sound/sink.py index e9d135a35d..3f64aa1e0d 100755 --- a/src/xpra/sound/sink.py +++ b/src/xpra/sound/sink.py @@ -27,8 +27,9 @@ if os.name=="posix": SINKS += ["alsasink", "osssink", "oss4sink", "jackaudiosink"] +SINK_SHARED_DEFAULT_ATTRIBUTES = {"sync" : False, + "async" : True} SINK_DEFAULT_ATTRIBUTES = { - "alsasink" : {"sync" : False}, "pulsesink" : {"client" : "Xpra"} } @@ -92,7 +93,9 @@ def __init__(self, sink_type=DEFAULT_SINK, options={}, codec=MP3, decoder_option if QUEUE_SILENT: queue_el.append("silent=%s" % QUEUE_SILENT) pipeline_els.append(" ".join(queue_el)) - sink_str = plugin_str(sink_type, SINK_DEFAULT_ATTRIBUTES.get(sink_type)) + sink_attributes = SINK_SHARED_DEFAULT_ATTRIBUTES.copy() + sink_attributes.update(SINK_DEFAULT_ATTRIBUTES.get(sink_type, {})) + sink_str = plugin_str(sink_type, sink_attributes) pipeline_els.append(sink_str) self.setup_pipeline_and_bus(pipeline_els) self.src = self.pipeline.get_by_name("src")