home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 10 / Fresh_Fish_10_2352.bin / useful / mus / play / play16 / play16.doc < prev    next >
Text File  |  1995-07-02  |  22KB  |  510 lines

  1.  
  2. ---------------------------------------------------------------------------
  3. -- Play16 version 1.5 (02.07.95) - a versatile soundplayer for the Amiga --
  4. ---------------------------------------------------------------------------
  5.  
  6. Features in brief
  7. -----------------
  8.  - autodetects and plays several soundfiles, up to 16 bit / 56 kHz / stereo
  9.  - full Workbench support (but not Intuition and no GUI)
  10.  - always correct playback speed, even for sounds >28 kHz
  11.  - realtime playback from harddisk, optimized assembler routines
  12.  - optional 14 bit output (less noise but not as good as true 16 bit)
  13.  - automatic or manual audio filter control
  14.  - plays mono sounds on *both* channels, not only on the left one
  15.  - plays (and loops) files that are larger than memory
  16.  - preloading for exactly timed start of playback
  17.  - fast uLaw decompression
  18.  - system friendly audio channel allocation
  19.  - optionally dump the output into a file (can be used to convert sounds)
  20.  - supported Filetypes are:
  21.  
  22.    * Microsoft RIFF-WAVE  (.WAV)  mono / stereo, 8 / 16 bit, linear / uLaw
  23.    * Creative Voice File  (.VOC)  mono / stereo, 8 / 16 bit, linear
  24.    * Sun/NeXT Audio       (.AU)   mono / stereo, 8 / 16 bit, linear / uLaw
  25.    * MacroSystem MAUD     (.MAUD) mono / stereo, 8 / 16 bit, linear / uLaw
  26.    * Apple/SGI/Amiga AIFF (.AIFF) mono / stereo, 8 / 16 bit, linear
  27.    * Amiga IFF-8SVX       (.IFF)  mono / stereo, 8      bit, linear / FibDelta
  28.    * Any raw sound data as long as it matches one of the following:
  29.      -  8 bit signed
  30.      -  8 bit unsigned
  31.      - 16 bit signed, Intel format    (LSB first)
  32.      - 16 bit signed, Motorola format (MSB first)
  33.  
  34.     - supported output devices are:
  35.  
  36.    * Native Amiga chipset (Paula)  8 bit
  37.    * Native Amiga chipset (Paula) 14 bit
  38.    * Native Amiga chipset (Paula) 14 bit calibrated (Christian Buchner)
  39.    * MacroSystem Maestro Pro      16 bit 44.1kHz and 48kHz only
  40.    * IFF-8SVX file dump            8 bit
  41.  
  42. ========================== Section 1: Quick start =========================
  43.  
  44. What do I need to use Play16?
  45. -----------------------------
  46. Any Amiga running Kickstart/Workbench 2.04 or greater.
  47.  
  48. To use the calibrated 14 bit output you need a valid CyberSound preferences
  49. file in your ENVARC: directory. If you don't have one already it can be
  50. generated with Christian's calibration package included in this distribution.
  51.  
  52. Maestix.library V38 or higher is required to use the MPro board for output.
  53.  
  54. Where do I find the latest version?
  55. -----------------------------------
  56.  - FIDONET: Amiga Venture BBS, Germany (2:243/6050)
  57.  - AMINET:  mus/play
  58.  - WWW:     http://linux.rz.fh-hannover.de/~wenzel/Play16/
  59.  
  60. further I recommend to have a look at the following packages:
  61.  
  62. CyberSound:
  63.  - AMINET:  disk/cdrom/14Bit_CDPlayer.lha
  64.  
  65. Maestix:
  66.  - AMINET:  util/libs/Maestix39_00.lha
  67.  
  68. How do I use it?
  69. ----------------
  70. From CLI:       Simply type "Play16 <filename>" and that's it!
  71. From Workbench: Just doubleclick on it's icon. A filerequester will pop up.
  72.  
  73. All possible options will be explained later. If you set none of them, the
  74. defaults will be used.
  75.  
  76.  
  77. ==================== Section 2: Background information ====================
  78.  
  79. What does it do?
  80. ----------------
  81. Basically, Play16 is capable of playing uncompressed and _some_ compressed
  82. soundfiles through Amiga's standard audio device or an increasing number of
  83. alternative devices. If the actual resolution or playback rate exceeds that
  84. of the Amiga hardware, realtime conversion is done so that the sound is
  85. being played back correctly.
  86.  
  87. You can even play 16 bit / 44.1 kHz sounds, providing all parts of
  88. your system can keep up with the high data transfer rate and lots
  89. of calculations needed for this task. (In this case an accelerated
  90. Amiga is recommended :-)
  91.  
  92. The two audio channels at each side can be linked to perform as a single
  93. 14 bit channel. Again, this swallows lots of computing power.
  94.  
  95. Anyway, my Amiga 3000-16MHz is fast enough to play an uncompressed soundfile
  96. with full 44.1kHz/14bit output (productivity) directly from harddisk !!!
  97.  
  98. I don't want Play16 to be a program that plays each and every exotic format
  99. that exists somewhere. However, I intend to support as many popular file
  100. types as possible.
  101.  
  102.  
  103. Why Play16?
  104. -----------
  105. 16 bit soundcards are becoming more and more popular, especially on the
  106. PC. The common file format over there is Microsoft's (yuck! :)) RIFF-
  107. WAVE format.
  108. I didn't find any CLI based program to play back 16 bit recordings, on a
  109. standard Amiga, so I decided to write one myself.
  110.  
  111.  
  112. Why CLI based and no GUI?
  113. -------------------------
  114. There are so many GUI based directory utilities, simply use Play16 as an
  115. external player. Consult the manual of your software package on how to
  116. do it. Application example: Assign "Play16 <filename> PRELOAD" to a button
  117. called "Jingle". Select the desired soundfile and press the Jingle-button.
  118. Wait for the appropriate moment and hit the return key - here comes the
  119. sound! Nice when audio dubbing your home videos or even on parties :-)
  120.  
  121.  
  122. How does it work? (technical info)
  123. ----------------------------------
  124. The standard Amiga audio device is limited to 8 bit / 28 kHz playbck
  125. when using DMA. With the introduction of ECS the 28 kHz DMA barrier
  126. was broken - but only if the current displaymode was one with double
  127. scan rate like productivity. The reason for this is the dependency
  128. between video and audio DMA. If you don't have ECS or if you simply
  129. don't want to switch to Productivity just to listen to your desired
  130. sound, Play16 can halve the sample rate during playback.
  131.  
  132. Another way to archieve high output rates is using IRQ. This works no
  133. matter what the displaymode is. I've been experimenting on that long
  134. before I started writing Play16 but there was so much jitter that my
  135. current downsampling method sounds much better.
  136.  
  137. To play back even long sounds, the popular method of double buffering
  138. is used. Alternatively, all data can be loaded into memory before
  139. playback. This is useful when playing short sounds or when loading
  140. the sound from floppy disk or slow CD ROM.
  141.  
  142. The 14 bit output is archieved by setting the first channel on each
  143. side to volume 64 and the second to volume 1. The louder channel then
  144. plays the upper 8 bits as usual while the other channel plays the
  145. 6 most significant bits of the low byte synchronously. Because timing
  146. is very crucial in this case it is nessecary to write directly to
  147. hardware registers instead of using the audio.device. This method may
  148. not work on future amiga models if there ever will be any... :-/
  149.  
  150. Unfortunately, Amiga's DACs are not perfectly linear. A significant
  151. increase in sound quality can be archieved by calibrating each
  152. MSB conversion step individually for your machine. Christian Buchner's
  153. CyberSound system supports this kind of calibration. Play16 can load
  154. the preferences file generated by Christian's calibration program.
  155.  
  156. The MPro output uses the maestix.library by Richard Körber. Have a look
  157. at the Maestix package available on AMINET for further details.
  158.  
  159. =========================== Section 3: Options ============================
  160.  
  161. What options are provided?
  162. --------------------------
  163. There are three ways to specify the options, which are:
  164.  
  165.  CLI:       In the commandline, using standard AmigaOS 2.x template
  166.  Workbench: In the icon, using standard Amiga Workbench tooltype entries
  167.  General:   By setting environment variables. This is not possible for
  168.             all options yet.
  169.  
  170. If you are not familiar with the AmigaOS 2.x commandline template, see
  171. the examples below and consult the AmigaOS manual for furhter information.
  172. The tooltype entries are identical to the keywords you can specify in the
  173. commandline. Also, the environment variables have the same names and reside
  174. in ENV:Play16. 
  175.  
  176. Basic options: (All options marked with (*) have corresponding env-vars.)
  177.  
  178. VERBOSITY/N Sets the level of verbosity.
  179.             0: Just display the banner and error messages
  180.             1: Print additional information about the sound file,
  181.                allocated memory, etc.
  182.             2: Progress information
  183.             3: Debugging information (may look a bit weird :)
  184.             Default is level 0.
  185.  
  186. FAST/S      Do NOT automatically switch to half sample rat