Re: Converting/Playing WAV files

From: Marko Mäkelä (msmakela_at_cc.hut.fi)
Date: 2000-05-10 09:20:51

On Wed, 10 May 2000, COPLIN, Nicholas. wrote:

> Can any one recommend a PC tool to convert WAV sound files into digitised
> sound samples for the C64.

As far as I know, the WAV format consists of uncompressed raw audio
samples.  There may be different variants of it (8-bit, 16-bit, mono,
stereo); you should maybe experiment a little, or get some WAV
documentation from somewhere.

A long time ago, I made a few experiments.  I just took the 4 most
significant bits of each WAV sample, and packed two of them in a byte. I
wrote a simple player that played these at a constant speed in a busy
loop.  You probably should use some kind of RLE compression to save space,
and you may want to scale the samples.  For instance, if the WAV file
appears to use slightly more than 13 bits, you would multiply the samples
by 6 or 7 to move the signal to the most significant bits.

BTW, I remember reading about a MOD player for the C128 (I think it was
MOD).  Does anyone know anything about this?

	Marko

-
This message was sent through the cbm-hackers mailing list.
To unsubscribe: echo unsubscribe | mail cbm-hackers-request@dot.tcm.hut.fi.

Archive generated by hypermail 2.1.1.