31 |
|
|
32 |
class Voice; |
class Voice; |
33 |
|
|
34 |
|
/** @brief Voice Stealing Algorithms |
35 |
|
* |
36 |
|
* Enumeration of all possible voice stealing algorithms. |
37 |
|
*/ |
38 |
enum voice_steal_algo_t { |
enum voice_steal_algo_t { |
39 |
voice_steal_algo_none, |
voice_steal_algo_none, ///< Voice stealing disabled. |
40 |
voice_steal_algo_oldestvoiceonkey, |
voice_steal_algo_oldestvoiceonkey, ///< Try to kill the oldest voice from same key where the new voice should be spawned. |
41 |
voice_steal_algo_oldestkey |
voice_steal_algo_oldestkey ///< Try to kill the oldest voice from the oldest active key. |
42 |
}; |
}; |
43 |
|
|
44 |
|
/** @brief MIDI key runtime informations |
45 |
|
* |
46 |
|
* Reflects runtime informations for one MIDI key. |
47 |
|
*/ |
48 |
struct midi_key_info_t { |
struct midi_key_info_t { |
49 |
RTList<Voice>* pActiveVoices; ///< Contains the active voices associated with the MIDI key. |
RTList<Voice>* pActiveVoices; ///< Contains the active voices associated with the MIDI key. |
50 |
bool KeyPressed; ///< Is true if the respective MIDI key is currently pressed. |
bool KeyPressed; ///< Is true if the respective MIDI key is currently pressed. |