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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2012 - (hide annotations) (download) (as text)
Fri Oct 23 17:53:17 2009 UTC (14 years, 6 months ago) by iliev
File MIME type: text/x-c++hdr
File size: 3858 byte(s)
* Refactoring: moved the independent code from
  the Gigasampler format engine to base classes
* SFZ format engine: experimental code (not usable yet)
* SoundFont format engine: experimental code (not usable yet)
* Fixed crash which may occur when MIDI key + transpose is out of range

1 schoenebeck 53 /***************************************************************************
2     * *
3     * LinuxSampler - modular, streaming capable sampler *
4     * *
5 persson 1644 * Copyright (C) 2003,2004 by Benno Senoner and Christian Schoenebeck *
6 schoenebeck 1879 * Copyright (C) 2005-2009 Christian Schoenebeck *
7 iliev 2012 * Copyright (C) 2009 Grigor Iliev *
8 schoenebeck 53 * *
9     * This program is free software; you can redistribute it and/or modify *
10     * it under the terms of the GNU General Public License as published by *
11     * the Free Software Foundation; either version 2 of the License, or *
12     * (at your option) any later version. *
13     * *
14     * This program is distributed in the hope that it will be useful, *
15     * but WITHOUT ANY WARRANTY; without even the implied warranty of *
16     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
17     * GNU General Public License for more details. *
18     * *
19     * You should have received a copy of the GNU General Public License *
20     * along with this program; if not, write to the Free Software *
21     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, *
22     * MA 02111-1307 USA *
23     ***************************************************************************/
24    
25     #ifndef __LS_GIG_ENGINE_H__
26 iliev 2012 #define __LS_GIG_ENGINE_H__
27 schoenebeck 53
28 iliev 2012 #include "DiskThread.h"
29     #include "../EngineBase.h"
30     #include "Voice.h"
31 schoenebeck 505 #include <gig.h>
32 schoenebeck 239
33 schoenebeck 53 namespace LinuxSampler { namespace gig {
34    
35 iliev 2012 class Engine: public LinuxSampler::EngineBase<Voice, ::gig::Region, ::gig::DimensionRegion, DiskThread, InstrumentResourceManager, ::gig::Instrument> {
36 persson 438 public:
37 iliev 2012 Engine() { }
38     virtual ~Engine() { }
39 schoenebeck 411 // implementation of abstract methods derived from class 'LinuxSampler::Engine'
40 iliev 2012 virtual bool DiskStreamSupported();
41     virtual String Description();
42     virtual String Version();
43    
44     virtual Format GetEngineFormat();
45 persson 438
46 iliev 2012 virtual void ProcessControlChange (
47     LinuxSampler::EngineChannel* pEngineChannel,
48     Pool<Event>::Iterator& itControlChangeEvent
49     );
50 iliev 1789
51 iliev 2012 friend class Voice;
52 persson 831
53 iliev 2012 protected:
54     virtual DiskThread* CreateDiskThread();
55 persson 1644
56 iliev 2012 virtual Pool<Voice>::Iterator LaunchVoice (
57     LinuxSampler::EngineChannel* pEngineChannel,
58     Pool<Event>::Iterator& itNoteOnEvent,
59     int iLayer,
60     bool ReleaseTriggerVoice,
61     bool VoiceStealing,
62     bool HandleKeyGroupConflicts
63     );
64 schoenebeck 53
65 iliev 2012 virtual void TriggerNewVoices (
66     LinuxSampler::EngineChannel* pEngineChannel,
67     RTList<Event>::Iterator& itNoteOnEvent,
68     bool HandleKeyGroupConflicts
69     );
70 schoenebeck 53
71 iliev 2012 void TriggerReleaseVoices (
72     LinuxSampler::EngineChannel* pEngineChannel,
73     RTList<Event>::Iterator& itNoteOffEvent
74     );
75 schoenebeck 53
76     private:
77 iliev 2012 uint32_t RandomSeed; ///< State of the random number generator used by the random dimension.
78 schoenebeck 53 };
79    
80     }} // namespace LinuxSampler::gig
81    
82 iliev 2012 #endif /* __LS_GIG_ENGINE_H__ */
83    

  ViewVC Help
Powered by ViewVC