Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Institute of Technical Acoustics (ITA)
ITAConvolution
Commits
789897ae
Commit
789897ae
authored
Apr 19, 2017
by
Dipl.-Ing. Jonas Stienen
Browse files
Actually switching off output (last data source in chain) instead of patchbay before convolver
parent
9a1991b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
apps/ita_convoi/CMakeLists.txt
View file @
789897ae
...
...
@@ -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"
)
apps/ita_convoi/ita_convoi.cpp
View file @
789897ae
...
...
@@ -217,8 +217,8 @@ int main( int argc, char* argv[] )
case
(
'm'
)
:
{
// Toggle
o
PatchBay
.
SetOutputMuted
(
iOutputID
,
!
oPatchBay
.
IsOutputMuted
(
iOutputID
)
);
if
(
o
PatchBay
.
IsOutputMuted
(
iOutputID
)
)
o
Multiplier
.
SetMuted
(
!
oMultiplier
.
IsMuted
(
)
);
if
(
o
Multiplier
.
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'
)
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment