Actually switching off output (last data source in chain) instead of patchbay before convolver

parent 9a1991b5
......@@ -20,10 +20,11 @@ endif( )
add_executable( ita_convoi "ita_convoi.cpp" )
target_link_libraries( ita_convoi ${VISTA_USE_PACKAGE_LIBRARIES} )
vista_set_target_msvc_arguments( ita_convoi "lang_short.wav rir_2s.wav" )
vista_configure_app( ita_convoi )
vista_install( ita_convoi )
vista_create_default_info_file( ita_convoi )
set_property( TARGET ita_convoi PROPERTY FOLDER "ITACoreLibs/Apps/ITAConvolution" )
vista_set_target_msvc_arguments( ita_convoi "ita_demosound.wav" "unequal_dirac.wav" )
......@@ -217,8 +217,8 @@ int main( int argc, char* argv[] )
case( 'm' ) :
{
// Toggle
oPatchBay.SetOutputMuted( iOutputID, !oPatchBay.IsOutputMuted( iOutputID ) );
if( oPatchBay.IsOutputMuted( iOutputID ) )
oMultiplier.SetMuted( !oMultiplier.IsMuted() );
if( oMultiplier.IsMuted() )
std::cout << "Output is now muted" << std::endl;
else
std::cout << "Output is loud" << std::endl;
......@@ -226,17 +226,9 @@ int main( int argc, char* argv[] )
}
case( 'n' ) :
{
// Switch to next channel
if( iFilterChannels > 1 )
{
iCurrentIRChannelIndex = ( iCurrentIRChannelIndex + 1 ) % iFilterChannels;
ita_convio_exchange_channel( &oConvolver, sfIR, iCurrentIRChannelIndex );
}
else
{
std::cout << "Only one channel available, doing nothing." << std::endl;
}
// Switch to next (or only) channel
iCurrentIRChannelIndex = ( iCurrentIRChannelIndex + 1 ) % iFilterChannels;
ita_convio_exchange_channel( &oConvolver, sfIR, iCurrentIRChannelIndex );
break;
}
case( 'd' ) :
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment