aboutsummaryrefslogtreecommitdiff
path: root/cdrecord
diff options
context:
space:
mode:
Diffstat (limited to 'cdrecord')
-rwxr-xr-xcdrecord23
1 files changed, 23 insertions, 0 deletions
diff --git a/cdrecord b/cdrecord
new file mode 100755
index 0000000..50cd977
--- /dev/null
+++ b/cdrecord
@@ -0,0 +1,23 @@
+#!/bin/bash
+#
+# Record an audio cd based on wav files in a folder
+#
+
+if [ -z "$1" ] && [ -d "$1" ]; then
+ CWD="`pwd`"
+ cd $1
+fi
+
+echo CD_DA > toc
+
+for file in *.wav; do
+ echo >> toc
+ echo TRACK AUDIO >> toc
+ echo FILE \"$file\" 0 >> toc
+done
+
+cdrdao write --speed 8x --device /dev/cdrom1 toc
+
+if [ ! -z "$CWD" ]; then
+ cd $CWD
+fi