wavlib           |
by sam (youresam)|
version 1        |
_________________|

ABOUT
-----
wavlib is a Lua library designed to be used to calculate a wav file.
It returns an image of custom height, width, and colors.

IMPORTANT
---------
wav MUST BE:
-352 kbps
-16 bit audio sample size
-mono
-22 kHz sample rate
-PCM
Any other format may lead to inaccurate results

FUNCTIONS
---------
After calling dofile("wavlib.lua"), use the following functions:

wav.load(filename)
	Loads the wav file fo use by wavlib. After loading, you have
	the following variables:
	wav.ChunkSize
	wav.Subchunk1ID
	wav.Subchunk1Size
	wav.AudioFormat
	wav.NumChannels
	wav.SampleRate
	wav.ByteRate
	wav.BlockAlign
	wav.BitsPerSample
	wav.Subchunk2Size
wav.calculate(mode, display, imageWidth)
	Calculates the wav data.
	mode: use "full" for accuracy, "quick" for speed
	display: if true, then call wav.display() while loading.
		wav.display() can use the variable wav.percent
		to show the percentage complete
	imageWidth: the width of the image to be later used
wav.calculate_image(imageWidth, imageHeight, bgColor, lineColor)
	returns the image of wav data. NOTE: only 1 image can be used
	imageWidth: width of image
	imageHeigt: height of image
	bgColor: bg color of image
	lineColor: wav data line color

**Please refer to the example files for examples of usage**


BUGS
----
Please report any bugs to me.
AIM: youresam1

MODIFING
--------
You may modify this program, but you MUST include me in it if you
plan to release.

NOTE: The complete example includes a skin from the upcoming release
      of PSP Media Player. This program is NOT in any way PSP Media
      Player.