There's a shell script, test/test_flac.sh, included in the flac
distribution.

It does essentially several variants of:


Code:
--------------------
    
  echo "abcdefghijklmnopqrstuvwxyz1234567890ABCDEFGHIJKLMN" > master.raw
  dd if=master.raw ibs=1 count=50 of=50c.raw 2>/dev/null || $dddie
  
  
  wav_eopt="$SILENT --force --verify --no-padding --lax"
  wav_dopt="$SILENT --force --decode"
  
  raw_eopt="$wav_eopt --force-raw-format --endian=big --sign=signed 
--sample-rate=10 --bps=8 --channels=1"
  raw_dopt="$wav_dopt --force-raw-format --endian=big --sign=signed"
  
  #
  # convert them to WAVE/AIFF/Ogg FLAC files
  #
  convert_to_wav ()
  {
        run_flac "$2" $1.raw || die "ERROR converting $1.raw to WAVE"
        run_flac "$3" $1.flac || die "ERROR converting $1.raw to WAVE"
  }
  convert_to_wav 50c "$raw_eopt" "$wav_dopt"
  
--------------------


-- 
MrC
------------------------------------------------------------------------
MrC's Profile: http://forums.slimdevices.com/member.php?userid=468
View this thread: http://forums.slimdevices.com/showthread.php?t=88688

_______________________________________________
beta mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/beta

Reply via email to