/[svn]/linuxsampler/trunk/src/effects/LadspaEffect.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/effects/LadspaEffect.cpp

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

revision 3053 by schoenebeck, Sat Jan 18 18:10:49 2014 UTC revision 3054 by schoenebeck, Thu Dec 15 12:47:45 2016 UTC
# Line 1  Line 1 
1  /*  /*
2      Copyright (C) 2010 - 2014 Christian Schoenebeck      Copyright (C) 2010 - 2016 Christian Schoenebeck
3  */  */
4    
5  #include "LadspaEffect.h"  #include "LadspaEffect.h"
# Line 113  LadspaEffect::LadspaEffect(EffectInfo* p Line 113  LadspaEffect::LadspaEffect(EffectInfo* p
113      // create control input and control output variables (effect parameters)      // create control input and control output variables (effect parameters)
114      // (they are going to be assigned to the actual LADSPA effect instance      // (they are going to be assigned to the actual LADSPA effect instance
115      // later in InitEffect() )      // later in InitEffect() )
116      const int iInControls = _getPortCountByType(      const int iInControls = (int) _getPortCountByType(
117          pDescriptor,          pDescriptor,
118          LADSPA_PORT_CONTROL | LADSPA_PORT_INPUT          LADSPA_PORT_CONTROL | LADSPA_PORT_INPUT
119      );      );
120      const int iOutControls = _getPortCountByType(      const int iOutControls = (int) _getPortCountByType(
121          pDescriptor,          pDescriptor,
122          LADSPA_PORT_CONTROL | LADSPA_PORT_OUTPUT          LADSPA_PORT_CONTROL | LADSPA_PORT_OUTPUT
123      );      );
# Line 252  void LadspaEffect::RenderAudio(uint Samp Line 252  void LadspaEffect::RenderAudio(uint Samp
252  void LadspaEffect::InitEffect(AudioOutputDevice* pDevice) throw (Exception) {  void LadspaEffect::InitEffect(AudioOutputDevice* pDevice) throw (Exception) {
253      this->pDevice = pDevice;      this->pDevice = pDevice;
254    
255      const int iInChannels = _getPortCountByType(      const int iInChannels = (int) _getPortCountByType(
256          pDescriptor,          pDescriptor,
257          LADSPA_PORT_AUDIO | LADSPA_PORT_INPUT          LADSPA_PORT_AUDIO | LADSPA_PORT_INPUT
258      );      );
259      const int iOutChannels = _getPortCountByType(      const int iOutChannels = (int) _getPortCountByType(
260          pDescriptor,          pDescriptor,
261          LADSPA_PORT_AUDIO | LADSPA_PORT_OUTPUT          LADSPA_PORT_AUDIO | LADSPA_PORT_OUTPUT
262      );      );
263      const int iInControls  = vInputControls.size();      //const int iInControls  = (int) vInputControls.size();
264      const int iOutControls = vOutputControls.size();      //const int iOutControls = (int) vOutputControls.size();
265    
266      // now create the actual LADSPA effect instance ...      // now create the actual LADSPA effect instance ...
267      dmsg(1, ("Instantiating LADSPA effect '%s'.\n", pInfo->label.c_str()));      dmsg(1, ("Instantiating LADSPA effect '%s'.\n", pInfo->label.c_str()));

Legend:
Removed from v.3053  
changed lines
  Added in v.3054

  ViewVC Help
Powered by ViewVC