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

Diff of /linuxsampler/trunk/src/engines/gig/EngineChannel.h

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

revision 906 by schoenebeck, Sun Jul 23 16:44:08 2006 UTC revision 1041 by schoenebeck, Wed Feb 7 17:45:19 2007 UTC
# Line 3  Line 3 
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 - 2007 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 24  Line 24 
24  #ifndef __LS_GIG_ENGINECHANNEL_H__  #ifndef __LS_GIG_ENGINECHANNEL_H__
25  #define __LS_GIG_ENGINECHANNEL_H__  #define __LS_GIG_ENGINECHANNEL_H__
26    
 #if DEBUG_HEADERS  
 # warning EngineChannel.h included  
 #endif // DEBUG_HEADERS  
   
27  #include "../common/Event.h"  #include "../common/Event.h"
28  #include "../EngineChannel.h"  #include "../EngineChannel.h"
29  #include "../../common/RingBuffer.h"  #include "../../common/RingBuffer.h"
30    #include "../../drivers/audio/AudioChannel.h"
31  #include "EngineGlobals.h"  #include "EngineGlobals.h"
32  #include "Engine.h"  #include "Engine.h"
33  #include "Voice.h"  #include "Voice.h"
# Line 70  namespace LinuxSampler { namespace gig { Line 67  namespace LinuxSampler { namespace gig {
67              virtual uint    Channels();              virtual uint    Channels();
68              virtual void    Connect(AudioOutputDevice* pAudioOut);              virtual void    Connect(AudioOutputDevice* pAudioOut);
69              virtual void    DisconnectAudioOutputDevice();              virtual void    DisconnectAudioOutputDevice();
70                virtual AudioOutputDevice* GetAudioOutputDevice();
71              virtual void    SetOutputChannel(uint EngineAudioChannel, uint AudioDeviceChannel);              virtual void    SetOutputChannel(uint EngineAudioChannel, uint AudioDeviceChannel);
72              virtual int     OutputChannel(uint EngineAudioChannel);              virtual int     OutputChannel(uint EngineAudioChannel);
73              virtual void    Connect(MidiInputPort* pMidiPort, midi_chan_t MidiChannel);              virtual void    Connect(MidiInputPort* pMidiPort, midi_chan_t MidiChannel);
# Line 82  namespace LinuxSampler { namespace gig { Line 80  namespace LinuxSampler { namespace gig {
80              virtual int     InstrumentStatus();              virtual int     InstrumentStatus();
81              virtual LinuxSampler::Engine* GetEngine();              virtual LinuxSampler::Engine* GetEngine();
82              virtual String  EngineName();              virtual String  EngineName();
83                virtual FxSend* AddFxSend(uint8_t MidiCtrl, String Name = "") throw (Exception);
84                virtual FxSend* GetFxSend(uint FxSendIndex);
85                virtual uint    GetFxSendCount();
86                virtual void    RemoveFxSend(FxSend* pFxSend);
87    
88              // implementation of abstract methods derived from interface class 'InstrumentConsumer'              // implementation of abstract methods derived from interface class 'InstrumentConsumer'
89              virtual void ResourceToBeUpdated(::gig::Instrument* pResource, void*& pUpdateArg);              virtual void ResourceToBeUpdated(::gig::Instrument* pResource, void*& pUpdateArg);
# Line 90  namespace LinuxSampler { namespace gig { Line 92  namespace LinuxSampler { namespace gig {
92    
93          //protected:          //protected:
94              Engine*                 pEngine;              Engine*                 pEngine;
95              float*                  pOutputLeft;              ///< Audio output channel buffer (left)              AudioChannel*           pChannelLeft;             ///< encapsulates the audio rendering buffer (left)
96              float*                  pOutputRight;             ///< Audio output channel buffer (right)              AudioChannel*           pChannelRight;            ///< encapsulates the audio rendering buffer (right)
97              int                     AudioDeviceChannelLeft;   ///< audio device channel number to which the left channel is connected to              int                     AudioDeviceChannelLeft;   ///< audio device channel number to which the left channel is connected to
98              int                     AudioDeviceChannelRight;  ///< audio device channel number to which the right channel is connected to              int                     AudioDeviceChannelRight;  ///< audio device channel number to which the right channel is connected to
99              MidiInputPort*          pMidiInputPort;           ///< Points to the connected MIDI input port or NULL if none assigned.              MidiInputPort*          pMidiInputPort;           ///< Points to the connected MIDI input port or NULL if none assigned.
100              midi_chan_t             midiChannel;              ///< MIDI channel(s) on which this engine channel listens to.              midi_chan_t             midiChannel;              ///< MIDI channel(s) on which this engine channel listens to.
101              RingBuffer<Event>*      pEventQueue;              ///< Input event queue.              RingBuffer<Event,false>* pEventQueue;             ///< Input event queue.
102              RTList<Event>*          pEvents;                  ///< All engine channel specific events for the current audio fragment.              RTList<Event>*          pEvents;                  ///< All engine channel specific events for the current audio fragment.
103              uint8_t                 ControllerTable[129];     ///< Reflects the current values (0-127) of all MIDI controllers for this engine / sampler channel. Number 128 is for channel pressure (mono aftertouch).              uint8_t                 ControllerTable[129];     ///< Reflects the current values (0-127) of all MIDI controllers for this engine / sampler channel. Number 128 is for channel pressure (mono aftertouch).
104              midi_key_info_t*        pMIDIKeyInfo;             ///< Contains all active voices sorted by MIDI key number and other informations to the respective MIDI key              midi_key_info_t*        pMIDIKeyInfo;             ///< Contains all active voices sorted by MIDI key number and other informations to the respective MIDI key
# Line 110  namespace LinuxSampler { namespace gig { Line 112  namespace LinuxSampler { namespace gig {
112              bool                    PortamentoMode;           ///< in Portamento Mode we slide the pitch from the last note to the current note.              bool                    PortamentoMode;           ///< in Portamento Mode we slide the pitch from the last note to the current note.
113              float                   PortamentoTime;           ///< How long it will take to glide from the previous note to the current (in seconds)              float                   PortamentoTime;           ///< How long it will take to glide from the previous note to the current (in seconds)
114              float                   PortamentoPos;            ///< Current position on the keyboard, that is integer and fractional part (only used if PortamentoMode is on)              float                   PortamentoPos;            ///< Current position on the keyboard, that is integer and fractional part (only used if PortamentoMode is on)
115              double                  GlobalVolume;             ///< overall volume (a value < 1.0 means attenuation, a value > 1.0 means amplification)              double                  GlobalVolume;             ///< Master volume factor set through the C++ API / LSCP (a value < 1.0 means attenuation, a value > 1.0 means amplification)
116                double                  MidiVolume;               ///< Volume factor altered by MIDI CC#7 (a value < 1.0 means attenuation, a value > 1.0 means amplification)
117              float                   GlobalPanLeft;              float                   GlobalPanLeft;
118              float                   GlobalPanRight;              float                   GlobalPanRight;
119              int                     Pitch;                    ///< Current (absolute) MIDI pitch value.              int                     Pitch;                    ///< Current (absolute) MIDI pitch value.
# Line 121  namespace LinuxSampler { namespace gig { Line 124  namespace LinuxSampler { namespace gig {
124              int                     InstrumentStat;              int                     InstrumentStat;
125              int                     iEngineIndexSelf;         ///< Reflects the index of this EngineChannel in the Engine's ArrayList.              int                     iEngineIndexSelf;         ///< Reflects the index of this EngineChannel in the Engine's ArrayList.
126              bool                    bStatusChanged;           ///< true in case an engine parameter has changed (e.g. new instrument, another volumet)              bool                    bStatusChanged;           ///< true in case an engine parameter has changed (e.g. new instrument, another volumet)
127                std::vector<FxSend*>    fxSends;
128                int                     GlobalTranspose;          ///< amount of semi tones all notes should be transposed
129    
130              void ResetControllers();              void ResetControllers();
131              void ClearEventLists();              void ClearEventLists();
# Line 132  namespace LinuxSampler { namespace gig { Line 137  namespace LinuxSampler { namespace gig {
137    
138          private:          private:
139              void ResetInternal();              void ResetInternal();
140                void RemoveAllFxSends();
141      };      };
142    
143  }} // namespace LinuxSampler::gig  }} // namespace LinuxSampler::gig

Legend:
Removed from v.906  
changed lines
  Added in v.1041

  ViewVC Help
Powered by ViewVC