/[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 3052 - (hide annotations) (download) (as text)
Wed Dec 14 17:34:54 2016 UTC (7 years, 5 months ago) by schoenebeck
File MIME type: text/x-c++hdr
File size: 4154 byte(s)
- Preparations for Xcode project update.

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 persson 2072 * Copyright (C) 2005-2008 Christian Schoenebeck *
7     * Copyright (C) 2009-2010 Christian Schoenebeck and 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 239
32 schoenebeck 3052 #if AC_APPLE_UNIVERSAL_BUILD
33     # include <libgig/gig.h>
34     #else
35     # include <gig.h>
36     #endif
37    
38 schoenebeck 53 namespace LinuxSampler { namespace gig {
39    
40 iliev 2012 class Engine: public LinuxSampler::EngineBase<Voice, ::gig::Region, ::gig::DimensionRegion, DiskThread, InstrumentResourceManager, ::gig::Instrument> {
41 persson 438 public:
42 iliev 2012 Engine() { }
43     virtual ~Engine() { }
44 schoenebeck 411 // implementation of abstract methods derived from class 'LinuxSampler::Engine'
45 iliev 2012 virtual bool DiskStreamSupported();
46     virtual String Description();
47     virtual String Version();
48 persson 2072
49 iliev 2012 virtual Format GetEngineFormat();
50 persson 438
51 iliev 2012 virtual void ProcessControlChange (
52     LinuxSampler::EngineChannel* pEngineChannel,
53     Pool<Event>::Iterator& itControlChangeEvent
54 schoenebeck 2559 ) OVERRIDE;
55     virtual void ProcessChannelPressure(LinuxSampler::EngineChannel* pEngineChannel, Pool<Event>::Iterator& itChannelPressureEvent) OVERRIDE;
56     virtual void ProcessPolyphonicKeyPressure(LinuxSampler::EngineChannel* pEngineChannel, Pool<Event>::Iterator& itNotePressureEvent) OVERRIDE;
57 schoenebeck 2611 virtual void CreateInstrumentScriptVM() OVERRIDE;
58 iliev 2012 friend class Voice;
59 persson 831
60 iliev 2012 protected:
61     virtual DiskThread* CreateDiskThread();
62 persson 1644
63 iliev 2012 virtual Pool<Voice>::Iterator LaunchVoice (
64     LinuxSampler::EngineChannel* pEngineChannel,
65     Pool<Event>::Iterator& itNoteOnEvent,
66     int iLayer,
67     bool ReleaseTriggerVoice,
68     bool VoiceStealing,
69     bool HandleKeyGroupConflicts
70     );
71 schoenebeck 53
72 iliev 2012 virtual void TriggerNewVoices (
73     LinuxSampler::EngineChannel* pEngineChannel,
74     RTList<Event>::Iterator& itNoteOnEvent,
75     bool HandleKeyGroupConflicts
76     );
77 schoenebeck 53
78 iliev 2012 void TriggerReleaseVoices (
79     LinuxSampler::EngineChannel* pEngineChannel,
80     RTList<Event>::Iterator& itNoteOffEvent
81     );
82 schoenebeck 53 };
83    
84     }} // namespace LinuxSampler::gig
85    
86 iliev 2012 #endif /* __LS_GIG_ENGINE_H__ */
87    

  ViewVC Help
Powered by ViewVC