/[svn]/linuxsampler/trunk/src/engines/gig/EngineGlobals.h
ViewVC logotype

Annotation of /linuxsampler/trunk/src/engines/gig/EngineGlobals.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 563 - (hide annotations) (download) (as text)
Sun May 22 20:43:32 2005 UTC (18 years, 11 months ago) by schoenebeck
File MIME type: text/x-c++hdr
File size: 3455 byte(s)
* (re)implemented voice stealing algorithm "oldestvoiceonkey" and made it
  the default voice stealing algorithm
* added new LSCP command "GET SERVER INFO" which currently returns
  description and version about this sampler
* added some API documentation comments
* minor cleanup

1 schoenebeck 411 /***************************************************************************
2     * *
3     * LinuxSampler - modular, streaming capable sampler *
4     * *
5     * Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck *
6     * Copyright (C) 2005 Christian Schoenebeck *
7     * *
8     * This program is free software; you can redistribute it and/or modify *
9     * it under the terms of the GNU General Public License as published by *
10     * the Free Software Foundation; either version 2 of the License, or *
11     * (at your option) any later version. *
12     * *
13     * This program is distributed in the hope that it will be useful, *
14     * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16     * GNU General Public License for more details. *
17     * *
18     * You should have received a copy of the GNU General Public License *
19     * along with this program; if not, write to the Free Software *
20     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, *
21     * MA 02111-1307 USA *
22     ***************************************************************************/
23    
24     #ifndef __LS_GIG_ENGINEGLOBALS_H__
25     #define __LS_GIG_ENGINEGLOBALS_H__
26    
27     #include "Voice.h"
28     #include "../common/Event.h"
29    
30     namespace LinuxSampler { namespace gig {
31    
32     class Voice;
33    
34 schoenebeck 563 /** @brief Voice Stealing Algorithms
35     *
36     * Enumeration of all possible voice stealing algorithms.
37     */
38 schoenebeck 411 enum voice_steal_algo_t {
39 schoenebeck 563 voice_steal_algo_none, ///< Voice stealing disabled.
40     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 ///< Try to kill the oldest voice from the oldest active key.
42 schoenebeck 411 };
43    
44 schoenebeck 563 /** @brief MIDI key runtime informations
45     *
46     * Reflects runtime informations for one MIDI key.
47     */
48 schoenebeck 411 struct midi_key_info_t {
49     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.
51     bool Active; ///< If the key contains active voices.
52     bool ReleaseTrigger; ///< If we have to launch release triggered voice(s) when the key is released
53     Pool<uint>::Iterator itSelf; ///< hack to allow fast deallocation of the key from the list of active keys
54     RTList<Event>* pEvents; ///< Key specific events (only Note-on, Note-off and sustain pedal currently)
55 schoenebeck 474 int VoiceTheftsQueued; ///< Amount of voices postponed due to shortage of voices.
56 persson 438 uint8_t RoundRobinIndex; ///< For the round robin dimension: current articulation for this key, will be incremented for each note on
57 schoenebeck 411 };
58    
59     }} // namespace LinuxSampler::gig
60    
61     #endif // __LS_GIG_ENGINEGLOBALS_H__

  ViewVC Help
Powered by ViewVC