Skip to content

Commit

Permalink
prefer:
Browse files Browse the repository at this point in the history
* osxaudiosrc on osx
* directsoundsrc on win32

Also log the latency tuning values before trying to apply them (should default to 0)

git-svn-id: https://xpra.org/svn/Xpra/trunk@12394 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Apr 16, 2016
1 parent 33f4982 commit e71ea40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/xpra/sound/gstreamer_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,11 +538,11 @@ def get_source_plugins():
sources.append("pulsesrc")
except ImportError as e:
log("get_source_plugins() no pulsesrc: %s", e)
sources.append("autoaudiosrc")
if OSX:
sources.append("osxaudiosrc")
elif WIN32:
sources.append("directsoundsrc")
sources.append("autoaudiosrc")
if os.name=="posix":
sources += ["alsasrc", "jackaudiosrc",
"osssrc", "oss4src",
Expand Down
1 change: 1 addition & 0 deletions src/xpra/sound/src.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ def __init__(self, src_type=None, src_options={}, codecs=get_codecs(), codec_opt
if BUFFER_TIME<LATENCY_TIME:
log.warn("Warning: latency (%ims) must be lower than the buffer time (%ims)", LATENCY_TIME, BUFFER_TIME)
else:
log("latency tuning for %s, will try to set buffer-time=%i, latency-time=%i", src_type, BUFFER_TIME, LATENCY_TIME)
def settime(attr, v):
try:
cval = self.src.get_property(attr)
Expand Down

0 comments on commit e71ea40

Please sign in to comment.