class VoiceManager
|
Manages internally the voices used by synth devices.
More... |
|
|
Public Methods
Detailed Description
Manages the voices used by synthesizers.
VoiceManager (int totalvoices)
|
Cronstructor.
Destructor.
int allocateVoice (int chn,int key)
|
Allocates a voice used in channel chn
, and playing key key
Returns: the voice that should be used.
void deallocateVoice (int id)
|
Deallocates the voice with ID id
.
initSearch() must be called always before search() to initialize
internal variables.
Returns -1 if channel chn is not currently used, or a voice using
channel chn
if any.
Calling search repeteadly, will return all the voices using channel
chn
, and a -1 after the last one.
int search (int chn,int note)
|
This is a convenience function that differs from the above in that it also
looks for a specific note (the second parameter)
Returns the channel that voice v
is using.
Returns the note that voice v
is playing.
Returns true or false if the voice v
is being used or not respectively.
Clears the lists of used voices.
- Version: 0.9.5 17/01/2000
- Author: Antonio Larrosa Jimenez <larrosa@kde.org>
- Generated: dfaure@faure on Sun Mar 26 14:25:24 2000, using kdoc 2.0a35.