home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 18 REXX / 18-REXX.zip / cplayv20.zip / cplay.doc < prev    next >
Text File  |  1993-07-07  |  3KB  |  73 lines

  1.  
  2.  
  3.  
  4. CPLAY version 2.0
  5. A VREXX Front end for playing audio files.
  6.  
  7. By: Kevin Deane-Freeman
  8. July 7, 1993
  9.  
  10.  
  11.     This is a fairly simple script I have been working on for the last few weeks.  I have collected quite a few sound samples during the past few months and I found that I was using up too much disk space.  I began to resample my files to lower rates in order to save space, but then I lost much of the sound quality.  That is when I came up with this idea.  I made a script to sample a sound file of any rate or type to a .WAV file with variable sampling rate.
  12.  
  13. I found that it is rather slow but the execution can be done in the background very simply.  I will get to the installation and usage shortly.  First, the packing list:
  14.  
  15. Included:
  16.     cplay.cmd - rexx script
  17.     cplay.doc - this file
  18.     sox.exe - ported to os/2 by Gary Adkins (Compuserve 7152.3536
  19.     sox.txt - instructions on the use of sox
  20.     soxread.me - readme file for sox
  21.     sbos2.sys - soundblaster driver for player.exe
  22.     player.exe(*) - nice command line audio player    
  23.  
  24. (*) token from the sbos2v09.zip archive by Michael Fulbright
  25.  
  26. Both Sox and Player can be found on Hobbes or CDROM.COM 
  27. I would recommend picking these up even though I have included the necessary files here.  I'm  sure it would please the authors of these fine programs.
  28.  
  29. Installation:
  30. --------------
  31.  
  32. a) sbos2.sys
  33.  
  34.    copy sbos2.sys to your sb directory. I use c:\sound\sbos2 on my system.
  35.  
  36.    Add "device=c:\sound\sbos2\sbos2.sys IRQ7 ADDR220 SBREG" to your
  37.    config.sys. (Omitt SBREG if you use a SB Pro etc. See: sbos2 docs)
  38.  
  39. b) Place sox.exe, player.exe, and cplay.cmd in any directory found in your path statement in config.sys.
  40.  
  41. c) Make a program object and when the setting window comes up, 
  42. type cplay.cmd for the program.
  43.     For the session, choose os2 window and start minimized.
  44.  
  45. Now all you have to do is double click on the icon and off you go.
  46.  
  47. I you don't have VREXX, cplay can still be used from the command line.
  48.  
  49. 1) Edit the script to ignore all the VREXX calls or simply delete the sections indicated as VREXX material.
  50.  
  51. 2) type "start cplay {rate} {fname}" at the command line where {fname} is the full path and file name of the file you wish to play, and {rate} is the sampling rate (kHz) you wish to use. (max 43)
  52.  
  53. Other audio players can be used.   Just check out the script and replace all references to player.exe in the file and insert your own.
  54.  
  55. Please enjoy this.  I know it is slow but I'm working on it myself.
  56. ***** You must have some free disk space as this script needs to create a couple of temp files to play.  
  57.  
  58. New Features:
  59. -----------------
  60.  
  61. Since version 1.0 I have added a new version of sox.  As well, I have added a ZiIP file handler.  So far this is only handled in basics by a VREXX routine.  You must tell the program what file is to be used form the zip fille.  In the future, as I learn more of REXX and ZIP files, I will add the feature of choosing a file from an archive list, and posibly use different types of archiving programs.
  62.  
  63. The other thing I have added is a rate option.  You can specify from 8-43 kHz for playback.  If either option is not specified, the VREXX routine takes over and prompts you for either the file or the rate depending on what is needed.
  64.  
  65. If you have any suggestions, comments, or questions, please contact me at eus@ubc.ca
  66.  
  67. Kevin Deane-Freeman
  68. UBC Electrical Engineering
  69. Vancouver, BC
  70.  
  71.  
  72.  
  73.