home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Bila Vrana
/
BILA_VRANA.iso
/
031A
/
MELODY26.ZIP
/
MELODY26.EXE
/
DRVSPKR.DOC
< prev
next >
Wrap
Text File
|
1996-01-09
|
48KB
|
1,580 lines
SPEAKER DEVICE DRIVER
DRVSPKR.SYS
User's Guide
Version of November 13, 1986
Preface
The loudspeaker provided on an IBM PC, XT and AT
computer is capable of a variety of audible outputs in
addition to the normal "beep". However, there is
little or no supporting software provided in MS/DOS to
allow a program to make use of this capability.
In addition, the normal "beep" is a completely
processor-intensive operation, resulting in very er-
ratic operation of programs which occasionally have to
do a beep. An example is DBASE III, which beeps at the
end of an input field. Normally, such a beep ties up
the processor, such that it can do nothing else during
that time. If several beeps have been queued, the wait
for all of these to finish can be quite an annoyance.
This document describes the Speaker Device Driver,
which provides a solution to these problems.
Table of Contents
1. INTRODUCTION...................................1
1.1 The ShareWare Concept........................1
1.1.1 What You Can Do...........................1
1.1.2 What You Cannot Do........................2
1.1.3 What You Should Do........................2
2. INSTALLING THE SPEAKER DEVICE DRIVER...........4
2.1 Installing the Driver File...................4
2.2 Modifying Your CONFIG.SYS File...............4
3. FACILITIES OF THE SPEAKER DEVICE DRIVER........6
3.1 Checking Out Your Beep.......................6
3.2 Interrupt-Driven Operation...................7
3.3 Multiple Beep Suppression....................7
3.4 Non-Processor-Speed Dependent................8
3.5 Making A Beep................................8
3.6 Changing the Sound of Your Beep..............9
3.7 Producing a Sequence of Tones................9
3.8 Buffered Tone Generation....................10
3.9 A New Device................................10
4. SPEAKER DEVICE DRIVER COMMANDS................11
4.1 The Basics..................................11
4.2 Commands Available..........................12
4.2.1 F - Frequency............................12
4.2.2 G - Gap..................................12
4.2.3 D - Duration of Each Tone................13
4.2.4 T - Tempo................................13
4.2.5 P - Pause................................14
4.2.6 R - Resume...............................14
4.2.7 B - Begin Recording......................15
4.2.8 E - End Recording........................15
4.2.9 Unrecognized Commands....................15
4.2.10 Controlling the Volume..................15
4.2.11 Chords..................................16
5. HOW TO CONFIGURE YOUR BEEP....................17
5.1 Several More Example Beeps..................17
6. SENDING COMMANDS TO THE DRIVER................19
6.1 From A Program..............................19
6.2 From the Console Keyboard...................19
6.3 From a File.................................20
6.3.1 Sending Other Sequences..................21
6.4 Testing Your Beep...........................21
7. ABOUT THE AUTHOR..............................23
i
Speaker Device Driver User's Guide
1. INTRODUCTION
The loudspeaker provided on an IBM PC, XT and AT
computer is capable of a variety of audible outputs in
addition to the normal "beep". However, there is little
or no supporting software provided in MS/DOS to allow a
program to make use of this capability.
In addition, the normal "beep" is a completely
processor-intensive operation, resulting in very erratic
operation of programs which occasionally have to do a
beep. An example is DBASE III, which beeps at the end of
an input field. Normally, such a beep ties up the
processor, such that it can do nothing else during that
time. If several beeps have been queued, the wait for
all of these to finish can be quite an annoyance. This
is even more of a problem when you are are on-line to
some other computer. The beeps that you receive normally
tie up your communications software, slowing down your
communications and in extreme cases causing data loss due
to buffer overrun.
This document describes the Speaker Device Driver,
which provides a solution to these problems.
1.1 The ShareWare Concept
The "ShareWare" concept is basically an experiment
in the marketing and distribution of software. It at-
tempts to cut down on distribution and marketing expenses
so that quality software can be made widely available at
the lowest possible price. This concept also makes it
possible for users to try the software before they decide
to keep (and, hopefully, pay) for it. This is very handy
in a world full of competing packages!
1.1.1 What You Can Do
Rev. November 13, 1986 23:38:47 -1-
Speaker Device Driver User's Guide
This software is being placed into the public domain
as "ShareWare". This means that you are encouraged to
copy this software and give it to your friends and/or
business associates. You may also use it in a commercial
environment. However, you may not sell the software for
more than the cost of the diskette and a small handling
charge. If you paid more than five or ten dollars for
the diskette with this software on it, you have been
cheated! Please advise the program's author (my address
appears at the end of this document) of the price you
paid, when, and from whom you purchased it.
If you distribute a copy of this software to anyone
else, you must distribute it complete and unchanged. You
must not change the program, the user's guide, or any of
the other files on the diskette. (You are permitted to
add additional files on the diskette if you like, as long
as you clearly identify yourself in the files you add,
along with the date you add those files to the diskette).
You will find, especially if you have a hard disk,
that this is a product you will use literally every day.
1.1.2 What You Cannot Do
As just mentioned, you cannot modify or delete any
of the files you find on the diskette when you give a
copy of it to anyone else. If you base a product on this
one, which you intend to sell for profit, you must make
arrangements for such