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
...@@ -20,10 +20,11 @@ endif( ) ...@@ -20,10 +20,11 @@ endif( )
add_executable( ita_convoi "ita_convoi.cpp" ) add_executable( ita_convoi "ita_convoi.cpp" )
target_link_libraries( ita_convoi ${VISTA_USE_PACKAGE_LIBRARIES} ) 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_configure_app( ita_convoi )
vista_install( ita_convoi ) vista_install( ita_convoi )
vista_create_default_info_file( ita_convoi ) vista_create_default_info_file( ita_convoi )
set_property( TARGET ita_convoi PROPERTY FOLDER "ITACoreLibs/Apps/ITAConvolution" ) 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[] ) ...@@ -217,8 +217,8 @@ int main( int argc, char* argv[] )
case( 'm' ) : case( 'm' ) :
{ {
// Toggle // Toggle
oPatchBay.SetOutputMuted( iOutputID, !oPatchBay.IsOutputMuted( iOutputID ) ); oMultiplier.SetMuted( !oMultiplier.IsMuted() );
if( oPatchBay.IsOutputMuted( iOutputID ) ) if( oMultiplier.IsMuted() )
std::cout << "Output is now muted" << std::endl; std::cout << "Output is now muted" << std::endl;
else else
std::cout << "Output is loud" << std::endl; std::cout << "Output is loud" << std::endl;
...@@ -226,17 +226,9 @@ int main( int argc, char* argv[] ) ...@@ -226,17 +226,9 @@ int main( int argc, char* argv[] )
} }
case( 'n' ) : case( 'n' ) :
{ {
// Switch to next channel // Switch to next (or only) channel
if( iFilterChannels > 1 ) iCurrentIRChannelIndex = ( iCurrentIRChannelIndex + 1 ) % iFilterChannels;
{ ita_convio_exchange_channel( &oConvolver, sfIR, iCurrentIRChannelIndex );
iCurrentIRChannelIndex = ( iCurrentIRChannelIndex + 1 ) % iFilterChannels;
ita_convio_exchange_channel( &oConvolver, sfIR, iCurrentIRChannelIndex );
}
else
{
std::cout << "Only one channel available, doing nothing." << std::endl;
}
break; break;
} }
case( 'd' ) : 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