home *** CD-ROM | disk | FTP | other *** search
/ CD-ROM Magazin 1996 March (Planer) / PLANER.BIN / bb_demo / scene18 / exp18 / sndinfo / sndinfo.awk < prev    next >
Text File  |  1994-08-09  |  552b  |  36 lines

  1. BEGIN   {
  2.             FS = ","
  3.             count = 0
  4.             printf "2i\\\n"
  5.             printf "nocursor\n"
  6.         }
  7.  
  8. /zoom/  {
  9.  
  10. #            printf "%di\\\n", $2
  11. #            if ($3 == 0 && $4 == 0 && $5 == 640 && $6 == 480) {
  12. #                printf "//unzoom\n"
  13. #            } else {
  14. #                printf "//zoomin %d, %d\n", $3, $4
  15. #            }
  16.         }
  17.  
  18. /snd/   {
  19.             printf "%di\\\n", $2
  20.             if (sndnum[$4] == "")
  21.             {
  22.                 count = count+1
  23.                 sndnum[$4]=count
  24.             }
  25.             Num = sndnum[$4]
  26.             if (Num == 1)
  27.                 Num = ""
  28.             printf "%s%s.wav\n", Name, Num
  29.  
  30.         }
  31.  
  32. END        {
  33.         printf "$a\\\n"
  34.         printf "arrowcursor\n"
  35.         }
  36.