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

Diff of /linuxsampler/trunk/src/engines/common/ModulatorGraph.cpp

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

revision 2297 by iliev, Thu Dec 8 20:03:47 2011 UTC revision 2298 by iliev, Fri Dec 9 17:04:24 2011 UTC
# Line 79  namespace LinuxSampler { Line 79  namespace LinuxSampler {
79                  pEffect2->InputControl(0)->SetValue(0); // Low-shelving gain (0dB)                  pEffect2->InputControl(0)->SetValue(0); // Low-shelving gain (0dB)
80                  pEffect2->InputControl(12)->SetValue(0); // High-shelving gain (0dB)                  pEffect2->InputControl(12)->SetValue(0); // High-shelving gain (0dB)
81                                    
                 dmsg(1,("EQ support: %s\n", pEffectInfo->Description().c_str()));  
82                  break;                  break;
83              }              }
84          }          }
85                    
86          if (pEffect == NULL) {          if (pEffect == NULL) return;
             dmsg(1,("EQ support: no\n"));  
             return;  
         }  
87                    
88          Reset();          Reset();
89      }      }
90            
91        void EqSupport::PrintInfo() {
92            if (!HasSupport()) {
93                dmsg(1,("EQ support: no\n"));
94            } else {
95                dmsg(1,("EQ support: %s\n", pEffect->GetEffectInfo()->Description().c_str()));
96            }
97        }
98        
99      void EqSupport::SetGain(int band, float gain) {      void EqSupport::SetGain(int band, float gain) {
100          if (!HasSupport()) return;          if (!HasSupport()) return;
101          if (band < 0 || band >= BandCount) throw Exception("EQ support: invalid band");          if (band < 0 || band >= BandCount) throw Exception("EQ support: invalid band");

Legend:
Removed from v.2297  
changed lines
  Added in v.2298

  ViewVC Help
Powered by ViewVC