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

Diff of /linuxsampler/trunk/src/engines/Engine.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 887 by schoenebeck, Sat Jul 1 13:30:52 2006 UTC revision 1800 by schoenebeck, Sun Dec 7 01:26:46 2008 UTC
# Line 2  Line 2 
2   *                                                                         *   *                                                                         *
3   *   LinuxSampler - modular, streaming capable sampler                     *   *   LinuxSampler - modular, streaming capable sampler                     *
4   *                                                                         *   *                                                                         *
5   *   Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck   *   *   Copyright (C) 2003,2004 by Benno Senoner and Christian Schoenebeck   *
6   *   Copyright (C) 2005, 2006 Christian Schoenebeck                        *   *   Copyright (C) 2005-2008 Christian Schoenebeck                        *
7   *                                                                         *   *                                                                         *
8   *   This program is free software; you can redistribute it and/or modify  *   *   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  *   *   it under the terms of the GNU General Public License as published by  *
# Line 25  Line 25 
25  #define __LS_ENGINE_H__  #define __LS_ENGINE_H__
26    
27  #include "../common/global.h"  #include "../common/global.h"
28    #include "InstrumentManager.h"
29    
30  namespace LinuxSampler {  namespace LinuxSampler {
31    
32        // just symbol prototyping
33        class MidiInputPort;
34    
35      /** @brief LinuxSampler Sampler Engine Interface      /** @brief LinuxSampler Sampler Engine Interface
36       *       *
37       * Abstract base interface class for all LinuxSampler engines which       * Abstract base interface class for all LinuxSampler engines which
# Line 42  namespace LinuxSampler { Line 46  namespace LinuxSampler {
46              //     (these have to be implemented by the descendant)              //     (these have to be implemented by the descendant)
47    
48              virtual int    RenderAudio(uint Samples) = 0;              virtual int    RenderAudio(uint Samples) = 0;
49              virtual void   SendSysex(void* pData, uint Size) = 0;              virtual void   SendSysex(void* pData, uint Size, MidiInputPort* pSender) = 0;
50              virtual void   Reset() = 0;              virtual void   Reset() = 0;
51              virtual void   Enable() = 0;              virtual void   Enable() = 0;
52              virtual void   Disable() = 0;              virtual void   Disable() = 0;
53              virtual uint   VoiceCount() = 0;              virtual uint   VoiceCount() = 0;
54              virtual uint   VoiceCountMax() = 0;              virtual uint   VoiceCountMax() = 0;
55                virtual int    MaxVoices() = 0;
56                virtual void   SetMaxVoices(int iVoices) throw (Exception) = 0;
57              virtual bool   DiskStreamSupported() = 0;              virtual bool   DiskStreamSupported() = 0;
58              virtual uint   DiskStreamCount() = 0;              virtual uint   DiskStreamCount() = 0;
59              virtual uint   DiskStreamCountMax() = 0;              virtual uint   DiskStreamCountMax() = 0;
60                virtual int    MaxDiskStreams() = 0;
61                virtual void   SetMaxDiskStreams(int iStreams) throw (Exception) = 0;
62              virtual String DiskStreamBufferFillBytes() = 0;              virtual String DiskStreamBufferFillBytes() = 0;
63              virtual String DiskStreamBufferFillPercentage() = 0;              virtual String DiskStreamBufferFillPercentage() = 0;
64              virtual String Description() = 0;              virtual String Description() = 0;
65              virtual String Version() = 0;              virtual String Version() = 0;
66              virtual String EngineName() = 0;              virtual String EngineName() = 0;
67    
68                /**
69                 * Returns pointer to the Engine's InstrumentManager or NULL if
70                 * the Engine does not provide an InstrumentManager.
71                 *
72                 * <b>Important:</b> All engine instances of the same engine
73                 * type have to return the same InstrumentManager, that is all
74                 * instances of the same engine type have to share one and
75                 * the same InstrumentManager object.
76                 */
77                virtual InstrumentManager* GetInstrumentManager() = 0;
78    
79          protected:          protected:
80              virtual ~Engine() {}; // MUST only be destroyed by EngineFactory              virtual ~Engine() {}; // MUST only be destroyed by EngineFactory
81                void Unregister();    // Remove self from EngineFactory.
82              friend class EngineFactory;              friend class EngineFactory;
83      };      };
84    

Legend:
Removed from v.887  
changed lines
  Added in v.1800

  ViewVC Help
Powered by ViewVC