TWAVSampler component
=====================

TWAVSampler is a Delphi 1 & 2 component that records and plays back wave audio using the
MMSystem unit. 
It also fixes the waveInClose bug.

The purpose of this component is to provide you with a starting point in creating your
own wave audio applications. Using it will save you many hours (days) and even more 
frustration.
The component provides routines for recording, playing, opening and saving wave files.
You can easily derive your own component from it and add the processing routines you need.

TWAVSampler is shareware. The unregistered version is fully functional, but only when the 
Delphi IDE is running.

The registration fee is US$49. When you register, you receive the full source code and you
can get free technical support via email. If you know what a horrible task it is to get
record and playback of wave files through the MMSystem unit working, you'll agree that this
is not expensive.

You may freely distribute the unregistered version of TWAVSampler, provided that you
include all files in their original form and that you do not ask any money for it.

How to use TWAVSampler
======================

Run Delphi, pick Options|Install components... from the menu and install sampler.dcu

Now you can load Test.dpr and see the component at work.

To use it in your own application, first add the SmpInfo and RecGauge units to your 
project. These two forms are used by the component. When you register, you can modify
them so they fit nicely in your application.
Then drop a TWAVSampler on your form.
Call RecordNew to record a new wave.
Call PlayStart to hear the wave.
Call SaveToFile to save it and LoadFromFile to load it again.

The component stores the wave data in raw format, i.e. as a continuous block of samples.
Because of the limitations of the 16-bit environment, the data is stored in 64K chucks.
WaveBuffers contains the amount of buffers the wave is spread over.
WaveLength is the length of the wave in bytes (not samples!).
TheWave points to a TWaveData structure that contains the actual data.
See sampler.int for more information.

Disclaimer
==========

This software is provided "as is". In no event shall I, the author, be liable 
for any consequential, special, incidental or indirect damages of any kind arising out of 
the delivery, performance or use of this software. This software has been written with 
great care, but I do not warrant that the software is error free.
You may not attempt to reverse compile, modify, translate or disassemble the software 
in whole or in part.

Registration
============

Print and fill out the registration form below and mail it along with the US$49 to
  Jan Goyvaerts
  Lerrekensstraat 5
  2220 Heist-op-den-Berg
    Belgium

If you have any questions or comments, you can contact me at johnfg@tornado.be
Feel free to visit my home page at http://www.tornado.be/~johnfg/

Registration form
=================


[  ] Yes! I would like to register the TWAVSampler component.

Name: _______________________________________

Company: ____________________________________

Email: ______________________________________

I am registering this component on behalf of:
  [  ] Myself
  [  ] My company

I understand that I will receive the source code to the TWAVSampler component via email
and that I may use this in my applications without extra charges.
I also understand that I may not distribute this source code, not in whole nor in part,
whether I have modified it or not.
I also understand that this registration is personal. I may only use the component or
any part of its source code in applications that are copyright by me only, or by my
company only if I am registering on behalf of my company.

I have included US$49 or the equivalent in my own currency in valid bank notes that can
be exchanged in Belgium. Otherwise, I won't be registered and I won't get my money back.

Date:  ______________

Signature: