#include <spkrnote.h>
Inheritance diagram for Monitor::Utility::SpeakerNote:

Public Types | |
| typedef int | Frequency |
| typedef int | Length |
Public Methods | |
| SpeakerNote (Frequency newFrequency, Length newLength) | |
| Constructor. More... | |
| virtual | ~SpeakerNote () |
| Destructor. More... | |
| virtual void | sound () const throw (Note::Busy) |
| Sound once. More... | |
| Frequency | getFrequency () const |
| void | setFrequency (Frequency newFrequency) |
| Length | getLength () const |
| void | setLength (Length newLength) |
Private Methods | |
| void | endSound () const |
| Stop sounding note. More... | |
Private Attributes | |
| Frequency | frequency |
| Frequency of note in hertz. More... | |
| Length | length |
| Length of note in milliseconds. More... | |
Static Private Attributes | |
| int | busy = 0 |
| Class variable used to indicate PC speaker is in use, cannot be used concurrently by more than one Note instance. More... | |
Definition at line 49 of file spkrnote.h.
|
|
Definition at line 52 of file spkrnote.h. |
|
|
Definition at line 53 of file spkrnote.h. |
|
||||||||||||
|
Constructor.
Definition at line 53 of file spkrnote.cpp. References _USEMYTRACE_. |
|
|
Destructor.
Definition at line 61 of file spkrnote.cpp. References _USEMYTRACE_. |
|
|
Stop sounding note.
Definition at line 96 of file spkrnote.cpp. References _USEMYTRACE_, and busy. |
|
|
Definition at line 109 of file spkrnote.cpp. References _USEMYTRACE_, and frequency. |
|
|
Definition at line 129 of file spkrnote.cpp. References _USEMYTRACE_, and length. |
|
|
Definition at line 119 of file spkrnote.cpp. References _USEMYTRACE_, and frequency. |
|
|
Definition at line 139 of file spkrnote.cpp. References _USEMYTRACE_, and length. |
|
|
Sound once.
Implements Monitor::Utility::Note. Definition at line 69 of file spkrnote.cpp. References _USEMYTRACE_. |
|
|
Class variable used to indicate PC speaker is in use, cannot be used concurrently by more than one Note instance.
Definition at line 50 of file spkrnote.cpp. Referenced by endSound. |
|
|
Frequency of note in hertz.
Definition at line 118 of file spkrnote.h. Referenced by getFrequency, and setFrequency. |
|
|
Length of note in milliseconds.
Definition at line 123 of file spkrnote.h. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002