VoiceManager Class Reference
List of all members.Detailed Description
Definition at line 35 of file voiceman.h.
Public Member Functions | |
VoiceManager (int totalvoices) | |
~VoiceManager () | |
int | allocateVoice (int chn, int key) |
void | deallocateVoice (int id) |
void | initSearch (void) |
int | search (int chn) |
int | search (int chn, int note) |
int | channel (int v) |
int | note (int v) |
int | used (int v) |
void | clearLists (void) |
Constructor & Destructor Documentation
|
Cronstructor.
Definition at line 33 of file voiceman.cc. |
|
Destructor.
Definition at line 72 of file voiceman.cc. |
Member Function Documentation
|
Allocates a voice used in channel
Definition at line 113 of file voiceman.cc. |
|
Returns the channel that voice
Definition at line 154 of file voiceman.h. |
|
Clears the lists of used voices.
Definition at line 95 of file voiceman.cc. |
|
Deallocates the voice with ID
Definition at line 151 of file voiceman.cc. |
|
initSearch() must be called always before search() to initialize internal variables.
Definition at line 229 of file voiceman.cc. |
|
Returns the note that voice
Definition at line 159 of file voiceman.h. |
|
This is a convenience function that differs from the above in that it also looks for a specific note (the second parameter).
Definition at line 252 of file voiceman.cc. |
|
Returns -1 if channel chn is not currently used, or a voice using channel
Calling search repeteadly, will return all the voices using channel
Definition at line 235 of file voiceman.cc. |
|
Returns true or false if the voice
Definition at line 164 of file voiceman.h. |
The documentation for this class was generated from the following files: