CC-1630 : Automatic recording of shows

using alsahw since users will have pulseaudio removed.
This commit is contained in:
naomiaro 2011-03-22 18:41:02 -04:00
parent 6c5a51e0fa
commit 44d83051b1
2 changed files with 2 additions and 2 deletions

View file

@ -45,7 +45,7 @@ def create_user(username):
#add pypo to audio group #add pypo to audio group
os.system("adduser " + username + " audio 1>/dev/null 2>&1") os.system("adduser " + username + " audio 1>/dev/null 2>&1")
#add pypo to pulse-access group #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): def copy_dir(src_dir, dest_dir):
if (os.path.exists(dest_dir)) and (dest_dir != "/"): if (os.path.exists(dest_dir)) and (dest_dir != "/"):

View file

@ -39,7 +39,7 @@ class Recorder(Thread):
filename = self.filename.replace(" ", "-") filename = self.filename.replace(" ", "-")
filepath = "%s%s.%s" % (config["base_recorded_files"], filename, self.filetype) 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) call(command, shell=True)
return filepath return filepath