home *** CD-ROM | disk | FTP | other *** search
/ PCNET 2006 September - Disc 1 / PCNET_CD_2006_09.iso / linux / puppy-barebones-2.01r2.iso / pup_201.sfs / usr / local / bin / play < prev    next >
Encoding:
Text File  |  2004-10-27  |  497 b   |  21 lines

  1. #!/bin/sh
  2. #BK
  3. #this is a script to play sound files.
  4. #Puppy has wavplay*, plays riff, rif, voc, wave, wav
  5. # mpg123*, plays mp3 ...um now i think madplay. ...now play.tcl.
  6. #note, Sox audio converter has a script called play*
  7. #and Sylpheed calls it to play sound files. Puppy doesn't
  8. #currently have Sox installed, so using this script instead.
  9.  
  10. echo $1 | grep ".wav"
  11. if [ $? -eq 0 ];then
  12.  wavplay $1
  13. else
  14.  #echo $1 | grep ".mp3"
  15.  #if [ $? -eq 0 ];then
  16.  # madplay $1
  17.  #fi
  18.  #play.tcl $1
  19.  gxine $1
  20. fi
  21.