Remove old unused and unmaintained Windows build scripts
[ardour.git] / tools / synthesize_sources.pl
index 3123d0cb1f2d2b479570707dc2e55c640495b72d..37e4ec0730650138d2e1dcd0b9b38f6559394476 100755 (executable)
@@ -7,6 +7,8 @@
 # for each missing source file. The length of each file is determined
 # by how far regions using that source file go into the sample data.
 
+use FindBin '$Bin';
+use lib "$Bin";
 use XML::Parser::PerlSAX;
 use XML::Handler::XMLWriter;
 use IO::Handle;
@@ -76,11 +78,11 @@ foreach my $tmp (keys %sources) {
               "-t", "raw",        # /dev/zero is raw :)
               "-r", $samplerate,  # set sample rate
               "-c", "1",          # 1 channel
-              "-b",               # input in bytes
+              "-b", "8",          # input in 8 bit chunks
               "-s",               # signed
               "/dev/zero",        # input signal
 
-              "-w",               # output 16 bit
+              "-b", "16",         # input in 16 bit chunks
               "-t", "wav",        # format wav
               $audioFileDirectory."/".$sources{$tmp}->{name}, # filename
               "trim", "0", $sources{$tmp}->{calculated_length}."s" # trim silence to wanted sample amount