Skip to content

Commit

Permalink
adjust the volume just before sending it out to the sound card and no…
Browse files Browse the repository at this point in the history
…t before entering the queue where things may get dropped (leaky queue), and delayed (by definition)

git-svn-id: https://xpra.org/svn/Xpra/trunk@16829 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Sep 12, 2017
1 parent 10f4f60 commit f34c7a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xpra/sound/sink.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ def __init__(self, sink_type=None, sink_options={}, codecs=get_decoders(), codec
pipeline_els.append(decoder_str)
pipeline_els.append("audioconvert")
pipeline_els.append("audioresample")
pipeline_els.append("volume name=volume volume=0")
if QUEUE_TIME>0:
pipeline_els.append(" ".join(["queue",
"name=queue",
Expand All @@ -120,6 +119,7 @@ def __init__(self, sink_type=None, sink_options={}, codecs=get_decoders(), codec
"max-size-bytes=0",
"max-size-time=%s" % QUEUE_TIME,
"leaky=%s" % QUEUE_LEAK]))
pipeline_els.append("volume name=volume volume=0")
sink_attributes = SINK_SHARED_DEFAULT_ATTRIBUTES.copy()
#anything older than this may cause problems (ie: centos 6.x)
#because the attributes may not exist
Expand Down

0 comments on commit f34c7a3

Please sign in to comment.