-
-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: https://xpra.org/svn/Xpra/trunk@9635 3bb7dfac-3a0b-4e04-842a-767bc560f471
- Loading branch information
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |