home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 24 / CD_ASCQ_24_0995.iso / vrac / sbply204.zip / SBPLAY.DOC < prev    next >
Text File  |  1995-07-05  |  5KB  |  104 lines

  1.         
  2.         SBPLAY version 2.04  July 5, 1995 by John A. Ball
  3.  
  4.         SBPlay is a utility for playing back sound files on Sound Blaster
  5.         compatiable cards, and the regular PC speaker. It does not require a 
  6.         sound board. To use the program type
  7.  
  8.         SBPLAY filename or SBPLAY
  9.  
  10.         where filename is the path to the file if required and filename can
  11.         include wild card characters. Filename extensions are not required.
  12.  
  13.         Version 2.04 will play back Tandy Sound files (SND), Creative Labs
  14.         (VOC), Microsoft (WAV), Apple (AIF) and Amiga (IFF) & (RAW) files. 
  15.         There is also some support for MAC files and .AU files.
  16.         SBPlay will also play the samples in (MOD) files at the last used        
  17.         frequency. Try using the /X command line option to see the song
  18.         patterns. It will try to play back unknown files or raw data files 
  19.         such as MAC SND files at 11,000 samples per second. The sound files 
  20.         should be uncompressed, 8 bits, and unsigned. Note other types of 
  21.         files can be played by using the command line options to change the 
  22.         defaults. I.e. R:22000 to change the playback speed to 22,000 samples per 
  23.         second.
  24.  
  25.         SBPlay will also rip sound samples from MOD files and will create
  26.         the SAM sample files which were used to create the original mod file.
  27.         SAM files are used by MOD editors to create MOD files and usually 
  28.         contain musical instrument sounds or other sound effects.
  29.         
  30.         SBPlay can be used to play a randomly selected sound file from a
  31.         directory with the /RAN switch. This can be used to play a different
  32.         sound file each time the computer boots by placing the following
  33.         command in the autoexec.bat file:
  34.  
  35.            SBPLAY c:\sound\*.* /s/ran
  36.  
  37.         where c:\sound is a directory containing sound files. The /s prevents
  38.         any file information from being shown on the screen and the /ran
  39.         selects any one of the files that are available.
  40.  
  41.         SBPlay is compatiable with DESQview, Windows, and OS/2. It can be used to
  42.         play back sound files by associating the sound file extension with
  43.         SBPlay in windows and DOSShell.
  44.         
  45.         If a mouse and mouse driver is present then SBPlay will use it to
  46.         select and play files. Try clicking the left mouse button on the
  47.         file to be played or the command.
  48.  
  49.         The main program is written in C and the sound routines for the PC 
  50.         speaker and Sound Blaster card are written in assembler. I used 
  51.         QuickC 2.51 with Assembler to create this program. The source
  52.         code is available see register.me for details.
  53.  
  54.         There are limitations to this program. 
  55.  
  56.         1) SBPLAY does not play back ALL sound files which have been 
  57.            compressed.
  58.         2) The program will not play back files that are larger than the DOS
  59.            ram memory available.
  60.         3) SBPlay will not playback sterio files recorded at 44100 Hz.
  61.         4) There are audio gaps during the playback of large sound files
  62.            on slow PCs and when using a multitasker.
  63.  
  64.         Problems:
  65.  
  66.         SBPlay uses the DOS environment to help find the hardware 
  67.         configuration. It looks for the BLASTER variable to determine what
  68.         the hardware address is, the IRQ, the DMA channel, and the board type.
  69.  
  70.         i.e.
  71.  
  72.         SET BLASTER=A220 I5 D1 T3
  73.  
  74.         will tell SBPlay that the Address is 220h, the IRQ is 5, the DMA
  75.         channel is 1, and the card type is 3 (SB ver 2.0). If your board
  76.         is configured for another DMA channel such as 0, the D parameter
  77.         must be D0 . If you have a Sound Blaster compatiable card and SBPlay
  78.         locks up try using T-1 to tell SBPlay that your card is not a Sound
  79.         Blaster card. If the hardware address or IRQ is not correct in the
  80.         BLASTER variable SBPlay should give you an error message and you can
  81.         use the /x parameter on the command line to find the correct hardware
  82.         information.
  83.  
  84.         The use of this program is free but you must register your use of 
  85.         this program. By registering I receive the feedback required to
  86.         keep me supporting this program and improving it. You may modify
  87.         and use the source code for your own programs. You may not distribute
  88.         modified code. Please send all corrrections and suggested improve-
  89.         ments to John A. Ball.
  90.         
  91.         Comments and suggestions may be sent to
  92.  
  93.         john.ball@two-t.com or
  94.         jaball@netbistro.com
  95.  
  96.                 John A. Ball
  97.                 2398 Victoria Street
  98.                 Prince George, B.C.
  99.                 V2L 2M2
  100.                 Canada
  101.  
  102.         Thank-you for trying my program.
  103.         
  104.