home *** CD-ROM | disk | FTP | other *** search
- ══════════════════════════ SoundPro Ver 1.00 ═══════════════════════════════
- By Marc Hughes
-
- When I wanted to have some sound blaster routines, I looked over many many
- kits, I only foud 1 I liked, but that was way out of my price range. So
- I decided to make this low cost simple to use set of functions. I was
- inspired by the QBasic Play command. so I created this over the course
- of a few months. In this version there is no stereo, or double track
- capabilities. If you register there is, giving you much much more power.
-
- To Compile this simply compile your source and link it with library.obj.
- Its a generic name, but its easy to remember. All the functions are listed
- below, and in an example program I have included. I decided to distrubute
- this in OBJ format simply becaus it is more compatible with other compiliers.
-
- This is a program that willl play simple music over the PC-Speaker, or your
- sound blaster. It uses the clock-tick interupt, so it will run at the same
- speed on all machines. MAXBUFFER is the maximum size of the recorded buffer.
- The music repeats until told to stop, good for background music in games.
-
- -=- void initsound(); -=-
- This function starts the interupts. It must be called to play any sound.
- You may call any of the other functions, except stop(), they will work normally
- BUT no sound will be played. (SB_initsound does the same, except for Sound
- Blaster instead of pc speaker)
-
- -=- void shutdown(); -=-
- This will shut down the player, and get rid of all the interupts. Call
- this before you shut your program down.
- (SB_shutdown does the same, except for Sound
- Blaster instead of pc speaker)
-
- -=- void stop(); -=-
- This function stops the music.
-
- -=- void resume(); -=-
- This function restarts the music after a call to stop();
-
- -=- void CLEAR(); -=-
- This clears out the music buffer. To play additional music, you must call
- play() statement, and a resume() statement.
-
- -=- void play(char buf[]); -=-
- The function play(*char) takes in a string of music, and appends it to the
- end of the current sequence. Old music, already played is not deleted from
- the buffer. Here are the commands for the string:
-
- * Stop playing (Usefull for end of song.)
- Q Set next notes to Quater notes
- W " " " " Whole notes
- H " " " " Half notes
- T " " " " Eigth notes
- + Increases the note length by 1 Clock Ticks
- - Decreases " " " " 1 Clock Ticks
- { " " " " " " 10 Clock Ticks
- } Increases " " " " 10 Clock Ticks
- ? Set current note length to 50 Clock Ticks
- A-G Plays the lettered note
- a-g Plays the lettered note up an octave
- ' ' (Space) Plays a rest
-
-
- If you would like to use this in your own programs, please send $5.00 plus
- $1.37 (For shipping, handling, disk) to:
-
- Marc Hughes
- 5 Cooper St.
- Auburn, MA 01501
-
- For registering you also get, stereo sound, sound effects, file reaing, and
- full source code to do whatever you like with. You MAY NOT use this shareware
- version in any of your own programs that you release.
-
- DISCLAIMER:
- I will not be held responsible for anything going wrong with your
- computer, if you don't agree with this, delete this file imediately!!
-
- ════════════════════════════════════════════════════════════════════════════
-