Skip to content

Commit

Permalink
#849: missed from r9634
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@9635 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jun 15, 2015
1 parent cf6628e commit 909b5d5
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions src/xpra/sound/pulseaudio_none_util.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#!/usr/bin/env python
# This file is part of Xpra.
# Copyright (C) 2015 Antoine Martin <antoine@devloop.org.uk>
# Xpra is released under the terms of the GNU GPL v2, or, at your option, any
# later version. See the file COPYING for details.

import sys

from xpra.log import Logger
log = Logger("sound")


def has_pa():
return False


def set_source_mute(device, mute=False):
pass

def get_default_sink():
return ""

def get_pulse_server():
return ""

def get_pulse_id():
return ""

def get_pa_device_options(monitors=False, input_or_output=None, ignored_devices=["bell-window-system"], log_errors=True):
return {}

def get_info():
return {
"pulseaudio.wrapper": "none",
"pulseaudio.found" : has_pa(),
}


def main():
if "-v" in sys.argv:
log.enable_debug()
i = get_info()
for k in sorted(i):
log.info("%s : %s", k.ljust(64), i[k])

if __name__ == "__main__":
main()

0 comments on commit 909b5d5

Please sign in to comment.