
                   *** WAV DataType V40.2 ***

             by David N.Junod and Christian Buchner


This  is an enhanced WAV datatype based on the sourcecodes found
in  the  OS 3.1 Native Developer Kit.  It was originally written
by David N.Junod.  All changes were done by Christian Buchner.


Installation
------------

Copy devs/Datatypes/WAVE#? SYS:devs/Datatypes/

Copy classes/Datatypes/wav.datatype SYS:classes/Datatypes/

Now reboot or type "AddDatatypes REFRESH" in a shell.


Enhancements over V39.1
-----------------------

* Handles 8 and 16 bit MONO and STEREO WAV files correctly.  For
  STEREO  WAVs,  the  channels  will  be  mixed together. (Sound
  datatypes are not capable of playing stereo samples!)

* it accepts WAV files that are one byte  too short and does not
  return  an  error  in that case.  (I found out to have lots of
  these 'buggy' WAV files.)

* loads   the   sample   to  Fast  RAM  if  possible  (you  need
  sound.datatype V40 for that feature!)

* saves  memory  while  loading  samples by reading and decoding
  only  small  (32K)  chunks.  The old WAV datatype V39.1 needed
  twice the length of a sample as free memory.

* uses  optimized  assembly  routines  for converting/mixing the
  sound data.




Future enhancements
-------------------

* Implement  different   decompression   methods  (ADPCM, a-law,
  y-law)  -> DOCUMENTATION DESPERATELY NEEDED!!!  (see  address
  below)

* "Normalization" of  the sample  by stretching it to full 8 bit
  signal range.



Future projects
---------------

* VOC datatype

Please  send  me  the  documentation  of  any sound and/or sound
compression format you know. (see address below)



The Author
----------

Christian Buchner
Ganghoferstraße 2
82110 Germering
Germany
Tel.: +49-89-844872

EMAIL: flowerp@eikon.e-technik.tu-muenchen.de

<flowerp> on irc #amiga and #amigager

  //
\X/ Flowerpower
