From 18ef86cee181f92e7c8ca5a3097b3a8470e54670 Mon Sep 17 00:00:00 2001 From: Naomi Date: Tue, 29 Mar 2011 12:24:32 -0400 Subject: [PATCH 1/3] CC-2111 : Show-recorder should automatically NOT record silence a user might want to adjust these sound levels for their own system setup. --- python_apps/show-recorder/testrecordscript.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_apps/show-recorder/testrecordscript.py b/python_apps/show-recorder/testrecordscript.py index c7fb2691d..cb8fa7cf6 100644 --- a/python_apps/show-recorder/testrecordscript.py +++ b/python_apps/show-recorder/testrecordscript.py @@ -61,7 +61,7 @@ class ShowRecorder(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 alsa -o %s -t:%s -ge:5,1,0,-1" % (filepath, length) args = command.split(" ") print "starting record" From 37a4d7bce4a86e25ed53e18a5649399d700dde74 Mon Sep 17 00:00:00 2001 From: Naomi Date: Tue, 29 Mar 2011 12:45:22 -0400 Subject: [PATCH 2/3] CC-2111 : Show-recorder should automatically NOT record silence --- python_apps/show-recorder/testrecordscript.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_apps/show-recorder/testrecordscript.py b/python_apps/show-recorder/testrecordscript.py index cb8fa7cf6..a352e1f26 100644 --- a/python_apps/show-recorder/testrecordscript.py +++ b/python_apps/show-recorder/testrecordscript.py @@ -61,7 +61,7 @@ class ShowRecorder(Thread): filename = self.filename.replace(" ", "-") filepath = "%s%s.%s" % (config["base_recorded_files"], filename, self.filetype) - command = "ecasound -i alsa -o %s -t:%s -ge:5,1,0,-1" % (filepath, length) + command = "ecasound -i alsa -o %s -t:%s -ge:3,1,0,-1" % (filepath, length) args = command.split(" ") print "starting record" From 8c522352d7e8afdaac3c588a20f49cfe4cf28252 Mon Sep 17 00:00:00 2001 From: Naomi Date: Tue, 29 Mar 2011 12:47:34 -0400 Subject: [PATCH 3/3] CC-2110 : Soundcloud file metadata adding a users function which will prob be used for metadata... when I see what's needed. --- application/models/Shows.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/application/models/Shows.php b/application/models/Shows.php index 8aa83beae..fc78138e3 100644 --- a/application/models/Shows.php +++ b/application/models/Shows.php @@ -58,6 +58,24 @@ class Show { $show->setDbBackgroundColor($backgroundColor); } + public function getHosts() + { + global $CC_DBC; + + $sql = "SELECT first_name, last_name + FROM cc_show_hosts LEFT JOIN cc_subjs ON cc_show_hosts.subjs_id = cc_subjs.id + WHERE show_id = {$this->_showId}"; + + $hosts = $CC_DBC->GetAll($sql); + + $res = array(); + foreach($hosts as $host) { + $res[] = $host['first_name']." ".$host['last_name']; + } + + return $res; + } + public function cancelShow($day_timestamp) { global $CC_DBC;