Skip to content

Commit 3e71349

Browse files
committed
initial commit
0 parents  commit 3e71349

109 files changed

Lines changed: 15595 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
archiver
2+
========
3+
4+
citr audio archiver written in C and Python - including web-interface for downloading audio chunks
5+
6+
authored by rtav

archiver-TODO

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
(1) Reverse date format to YYYY-MM-DD
2+
3+
(2) Use ~ (tilde) instead of space in /arch/d
4+
5+
(3) If file ends in .mp3, play directly. Otherwise, download.
6+
This may be a browser-defined behavior. We could always for
7+
.mp3 include a player.
8+
9+
(4) Caching of requests---I suppose that once podcasts come into
10+
use, this will make sense, if only to avoid unnecessary
11+
latency.
12+

citrlog/LICENSE

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/**
2+
Copyright (c) 2013, Robin Tavender
3+
All rights reserved.
4+
5+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
6+
7+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
8+
9+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
10+
11+
3. Neither the name of the Student Radio Society of The University of British Columbia nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
12+
13+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
14+
15+
*/

citrlog/README

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
CiTRLOG
2+
1.0
3+
4+
02/01/2014
5+
6+
by Robin Tavender.
7+
8+
(0) INTRODUCTION
9+
(I) CONFIGURATION
10+
(II) COMPILATION
11+
(III) INSTALLATION
12+
(IV) DEBUGGING
13+
14+
(0) INTRODUCTION
15+
16+
CiTRLOG is a program that continuously records audio, in the case of its original composition, the audio running out of the panel in CiTR101.9 FM's transmission room. This direct feed is recorded continuously onto a mass storage device as one-second mp3 files. These files may be easily concatenated together, without further modification, to form continuous chunks of audio.
17+
18+
(I) CONFIGURATION
19+
20+
The standard configuration file template in citrlog.EDITME.ini contains a few lines that can be modified. Once you have modified it, you may copy it wherever you like, e.g.
21+
22+
/usr/local/etc/citrlog.ini
23+
24+
The lines below the comment indicating not to change the values bellow the comment should be respected, unless, of course, you have read the source code and feel confident that modifying the values will not impact functionality. However, if you are competent to do that, you probably do not need instructions on how to configure or use this program; you should simply read the source code.
25+
26+
(II) COMPILATION
27+
28+
Dependencies:
29+
asound
30+
sndfile
31+
mp3lame
32+
33+
Compiler:
34+
gcc
35+
36+
To Compile:
37+
gcc -o -O3 citrlog -lasound -lsndfile -lmp3lame ini.c citrlog.c
38+
39+
(III) INSTALLATION
40+
41+
Copy the citrlog binary to your preferred location, along with the configuration file.
42+
43+
Provide for execution of the binary by your preferred method, e.g. a line in /etc/rc.local, e.g., to execute citrlog as user logger:
44+
45+
su -c "/usr/local/bin/citrlog /usr/local/etc/citrlog.ini" logger
46+
47+
(IV) DEBUGGING
48+
49+
No progam is ever free of bugs. There are, as Donald Rumself informs us, known knowns, known unknowns, and unknown unknowns. The things that we do not know we do not know are the most difficult to fix. And often we will know something is amiss, but we will not know what it is. If we are lucky, our problems are known knowns: we both know the problem and its cause.
50+
51+
If you make any modifcations to this program, I would appreciate it if you would send the modifcations to rtav@ubicee.net
52+
53+
(V) MANIFEST
54+
55+
sha1sum:
56+
57+
3cfaef91674a5c8ef9df72041503899a25a15d6f citrlog.c
58+
8d0bd0e1899648efc523617ada70eb95af8eb988 citrlog.EDITME.ini
59+
7d3273a0bfb31e10393b5d07268796647d0c4d02 ini.c
60+
5ea81419b91d350837c026d10ddcd20e16523919 ini.h
61+
04525d33050bfaf7f6a982935f51cdad0921f274 make.sh
62+
a08ca5b4c251f18f488f5926399e9523f356568c README
63+
64+
Total bytes: 34234

citrlog/checksums.sha

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
3cfaef91674a5c8ef9df72041503899a25a15d6f citrlog.c
2+
8d0bd0e1899648efc523617ada70eb95af8eb988 citrlog.EDITME.ini
3+
7d3273a0bfb31e10393b5d07268796647d0c4d02 ini.c
4+
5ea81419b91d350837c026d10ddcd20e16523919 ini.h
5+
04525d33050bfaf7f6a982935f51cdad0921f274 make.sh
6+
a169ba482e6ca41a40543af160735f7071f26dda README
7+

citrlog/citrlog.EDITME.ini

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[main]
2+
audiologbase=***EDIT ME*** (e.g. /mnt/audiolog/)
3+
logfile=***EDIT ME*** (e.g. /mnt/audiolog/audilog.log)
4+
detach=true
5+
#it is not recommended that you alter any of
6+
#the values below this line.
7+
device=default
8+
samplerate=44100
9+
mp3rate=128
10+
buffersize=44100

0 commit comments

Comments
 (0)