X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=tools%2Fsynthesize_sources.pl;h=37e4ec0730650138d2e1dcd0b9b38f6559394476;hb=213cc1d320559c090fd2bc1748e6365382672888;hp=3123d0cb1f2d2b479570707dc2e55c640495b72d;hpb=68e943265edf04e63a8e8b8f62bab20f99d9c637;p=ardour.git diff --git a/tools/synthesize_sources.pl b/tools/synthesize_sources.pl index 3123d0cb1f..37e4ec0730 100755 --- a/tools/synthesize_sources.pl +++ b/tools/synthesize_sources.pl @@ -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