/[svn]/linuxsampler/trunk/src/engines/FxSend.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/engines/FxSend.cpp

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

revision 1026 by schoenebeck, Sun Jan 14 17:10:59 2007 UTC revision 1040 by schoenebeck, Wed Feb 7 15:41:31 2007 UTC
# Line 28  Line 28 
28    
29  #include <map>  #include <map>
30    
31    #define DEFAULT_FX_SEND_LEVEL   0.0f
32    
33  namespace LinuxSampler {  namespace LinuxSampler {
34    
35      FxSend::FxSend(EngineChannel* pEngineChannel, uint8_t MidiCtrl, String Name) throw (Exception) {      FxSend::FxSend(EngineChannel* pEngineChannel, uint8_t MidiCtrl, String Name) throw (Exception) {
# Line 70  namespace LinuxSampler { Line 72  namespace LinuxSampler {
72          }          }
73          __done:          __done:
74    
75          fLevel = 0.3f; // default FX send level          fLevel = DEFAULT_FX_SEND_LEVEL;
76      }      }
77    
78      int FxSend::DestinationChannel(int SrcChan) {      int FxSend::DestinationChannel(int SrcChan) {
# Line 123  namespace LinuxSampler { Line 125  namespace LinuxSampler {
125          fLevel = float(iMidiValue & 0x7f) / 127.0f;          fLevel = float(iMidiValue & 0x7f) / 127.0f;
126      }      }
127    
128        void FxSend::Reset() {
129            fLevel = DEFAULT_FX_SEND_LEVEL;
130        }
131    
132      uint8_t FxSend::MidiController() {      uint8_t FxSend::MidiController() {
133          return MidiFxSendController;          return MidiFxSendController;
134      }      }

Legend:
Removed from v.1026  
changed lines
  Added in v.1040

  ViewVC Help
Powered by ViewVC