> Is there a simple way to create a .toc file for cdrdao from a bunch of
> wav files?  I just want to recreate the action of

> cdrecord -dao -audio [other options] *.wav

> but using cdrdao.

Here's a snippet of perl code which will do the trick, for the simple
case (the data in each .WAV file is a multiple of an audio sector in
length, no pregaps or index marks are to be added, etc.).

Just do a "./maketok *.wav > foo.toc" and then "cdrdao write foo.toc"

Much greater elegance, featurefulness, etc. could certainly be
implemented - add salt, pepper, hot sauce, etc. to your taste,
stir, and then burn ;-)

#!/usr/bin/perl

$track=1;

foreach $wav (@ARGV) {
  print "// Track $track\n";
  print "TRACK AUDIO\n";
  print "FILE \"$wav\"\n";
  print "\n";
  $track ++;
}




--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to