home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
PROG_C
/
SOUNDS.ZIP
/
MANUAL.DOC
< prev
next >
Wrap
Text File
|
1994-01-04
|
5KB
|
142 lines
Sounds Class for C++.
=====================
This class contains the necessary functions to enable your C++
programs to output .VOC format sound files through your SoundBlaster
(or compatible) sound card.
The version of the software works with 8-Bit unpacked .VOC files,
it also assumes that your sound card uses DMA channel 1 and that you
know what Interrupt number and Base Address the card uses. If in doubt,
consult the documentation that came with your sound card. The upgraded
version of the software (available to registered users) will automatically
detect the Base Address and Interrupt number.
Functions.
==========
Sounds ( enum IRQ I, enum BASE B, enum SIZE s );
------------------------------------------------
This is the constructor. Use this to create an instance of the Sounds
class, it requires that you give an Interrupt Number, Base Address and
buffer size. Within the Sounds.h header file you will find the enumerated
data types IRQ, BASE and SIZE it is recommended that use you use these
with the constructor
~Sounds();
----------
This is the destructor. Use this when you are finished, it will
de-allocate memory and de-install the interrupt handler.
long int Play( char * FileName);
--------------------------------
This function actually plays the .VOC file. The FileName argument must be
the directory (if not current directory) and filename of a valid 8-Bit
unpacked .VOC file. Always check the return value for this function, a
value of 1 is normal, anything else is an error condition.
void Error( long int status, char ** ptr );
-------------------------------------------
Translates an return status from Play ( see above ) in to a text error
message. If the return status from Play is anything other than 1 use this
function to get a description ( if somewhat terse ) of the error that has
occured.
long int Finished;
------------------
Not a function at all, but still important. If you are playing a file
how does your program know when the file has finished playing? When a
sound file is playing Finished will have a value of 0, when the file
has finished playing it will have a value of 1.
If the above explanations are not clear take a look at example1.cpp,
all should become clear.
Files.
======
The following files are include in this package.
Example1.cpp
------------
An example of the use of the functions provided in this version of
the Sounds class.
Example1.voc, example2.voc, example3.voc
----------------------------------------
Some sample sound files for use with example1.cpp.
Sndssmal.bat
------------
A batch file to compile Example1.cpp using the small memory model and link
it with the small memory model class library sndssmal.lib.
Sndsmedm.bat
------------
A batch file to compile Example1.cpp using the medium memory model and link
it with the medium memory model class library sndsmedm.lib.
Sndslrge.bat
------------
A batch file to compile Example1.cpp using the large memory model and link
it with the large memory model class library sndslrge.lib.
Sndssmal.lib, sndsmedm.lib, sndslrge.lib.
-----------------------------------------
Class libraries for the small medium and large memory models respectively.
Manual.doc
----------
You are reading it now.
Registration
============
This Shareware is available for your use and distribution without
charge. However, this version contains only a sub-set of the available
functions. If you do find these functions usefull and think you would
benefit from the expanded functionality in the upgraded version I would
urge you to register with us by completing the form below.
Alternatively Compuserve members can register using GO SWREG.
========================================================================
Stephen A. Edwards Questions: (302) 234-1071
712 Chimney Hill Lane, Compuserve: 72520,1121
Hockessin,
Delaware,
19707.
If you wish to register with us so as to receive the upgraded version
of the Sounds C++ Class please complete the form below, remembering
to circle the disk size that you require. Please include a check or
money order made payable to Stephen Edwards for $15 plus $2 for shipping
and handling ( a total of $17). For international orders please include
$4 for shipping and handling ( a total of $19 ).
Thank you very much for your support.
IMPORTANT: Please circle disk size 5.25 or 3.5.
Your Details:
Name:__________________________________________________
Address:__________________________________________________
City:__________________________________________________
State:____
Zip:_________
Country:____________________
Phone:_____________________________
=============================================================================