Skip to content
Snippets Groups Projects
Commit 789897ae authored by Dipl.-Ing. Jonas Stienen's avatar Dipl.-Ing. Jonas Stienen
Browse files

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

parent 9a1991b5
Branches
Tags
No related merge requests found
......@@ -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 )
{
// Switch to next (or only) channel
iCurrentIRChannelIndex = ( iCurrentIRChannelIndex + 1 ) % iFilterChannels;
ita_convio_exchange_channel( &oConvolver, sfIR, iCurrentIRChannelIndex );
}
else
{
std::cout << "Only one channel available, doing nothing." << std::endl;
}
break;
}
case( 'd' ) :
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment