Make it possible to use sample-exact controls in LADSPA plugins
I don't think we currently have any that would support this functionality, but in case someone has a LADSPA plugin that has audiorate control ports, this allows them to be used with the new sample-exact models Again... not strictly related to memory management, but since I was in that part of the codebase already...
This commit is contained in:
@@ -130,6 +130,25 @@ LADSPA_Data LadspaControl::value()
|
||||
}
|
||||
|
||||
|
||||
ValueBuffer * LadspaControl::valueBuffer()
|
||||
{
|
||||
switch( m_port->data_type )
|
||||
{
|
||||
case TOGGLED:
|
||||
case INTEGER:
|
||||
return NULL;
|
||||
case FLOATING:
|
||||
return m_knobModel.valueBuffer();
|
||||
case TIME:
|
||||
return m_tempoSyncKnobModel.valueBuffer();
|
||||
default:
|
||||
qWarning( "LadspaControl::valueBuffer(): BAD BAD BAD\n" );
|
||||
break;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void LadspaControl::setValue( LADSPA_Data _value )
|
||||
|
||||
Reference in New Issue
Block a user