Mixer: Don't require a connected control input for processing audio in Gain_Module.
This commit is contained in:
parent
6782bcbdf8
commit
916389ff34
|
@ -81,8 +81,6 @@ Gain_Module::configure_inputs ( int n )
|
|||
|
||||
void
|
||||
Gain_Module::process ( void )
|
||||
{
|
||||
if ( control_input[0].connected() )
|
||||
{
|
||||
float g = DB_CO( control_input[0].control_value() );
|
||||
|
||||
|
@ -91,12 +89,6 @@ Gain_Module::process ( void )
|
|||
if ( audio_input[i].connected() && audio_output[i].connected() )
|
||||
{
|
||||
buffer_apply_gain( (sample_t*)audio_input[i].buffer(), nframes(), g );
|
||||
|
||||
/* buffer_copy_and_apply_gain( (sample_t*)audio_output[0].buffer(), */
|
||||
/* (sample_t*)audio_input[0].buffer(), */
|
||||
/* nframes(), */
|
||||
/* g ); */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue