1 |
/* |
/* |
2 |
Copyright (C) 2010 - 2014 Christian Schoenebeck |
Copyright (C) 2010 - 2016 Christian Schoenebeck |
3 |
*/ |
*/ |
4 |
|
|
5 |
#include "LadspaEffect.h" |
#include "LadspaEffect.h" |
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 |
); |
); |
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())); |