From 44d83051b13c682db1742fec7d41cad19dfce976 Mon Sep 17 00:00:00 2001 From: naomiaro Date: Tue, 22 Mar 2011 18:41:02 -0400 Subject: [PATCH] CC-1630 : Automatic recording of shows using alsahw since users will have pulseaudio removed. --- pypo/install/pypo-install.py | 2 +- python_apps/show-recorder/testrecordscript.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pypo/install/pypo-install.py b/pypo/install/pypo-install.py index cff58175e..b764dcec9 100644 --- a/pypo/install/pypo-install.py +++ b/pypo/install/pypo-install.py @@ -45,7 +45,7 @@ def create_user(username): #add pypo to audio group os.system("adduser " + username + " audio 1>/dev/null 2>&1") #add pypo to pulse-access group - os.system("adduser " + username + " pulse-access 1>/dev/null 2>&1") + #os.system("adduser " + username + " pulse-access 1>/dev/null 2>&1") def copy_dir(src_dir, dest_dir): if (os.path.exists(dest_dir)) and (dest_dir != "/"): diff --git a/python_apps/show-recorder/testrecordscript.py b/python_apps/show-recorder/testrecordscript.py index 4c659cdcb..808918123 100644 --- a/python_apps/show-recorder/testrecordscript.py +++ b/python_apps/show-recorder/testrecordscript.py @@ -39,7 +39,7 @@ class Recorder(Thread): filename = self.filename.replace(" ", "-") filepath = "%s%s.%s" % (config["base_recorded_files"], filename, self.filetype) - command = "ecasound -i alsa -o %s -t:%s" % (filepath, length) + command = "ecasound -i alsahw,0,0 -o %s -t:%s" % (filepath, length) call(command, shell=True) return filepath