Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Institute of Technical Acoustics (ITA)
VACore
Commits
880b81e2
Commit
880b81e2
authored
Dec 07, 2017
by
Dipl.-Ing. Jonas Stienen
Browse files
Adding profiling for stream detector performance, and switching default HRIR to new artificial head
parent
08c13c49
Changes
3
Hide whitespace changes
Inline
Side-by-side
conf/VACore.ini.proto
View file @
880b81e2
...
...
@@ -56,7 +56,7 @@ voices_dir = data/Voices
#
Macros
are
substituted
forwardly
by
key
name
order
(
use
with
care
),
otherwise
stay
untouched
:
A
=
B
;
C
=
$
(
A
)
-
>
$
(
C
)
is
B
DemoSound
=
WelcomeToVA.wav
DefaultHRIR
=
ITA
-
Kunstkopf
_5x5_
256_
44kHz.v17.ir.daff
DefaultHRIR
=
ITA
_Artificial_Head
_5x5_44kHz
_128
.v17.ir.daff
HumanDir
=
Singer.v17.ms.daff
Trumpet
=
Trumpet1.v17.ms.daff
...
...
src/VAAudiostreamTracker.h
View file @
880b81e2
...
...
@@ -66,7 +66,7 @@ public:
inline
~
CVAAudiostreamTracker
()
{
VA_VERBOSE
(
"AudioStreaming"
,
"Processing time: "
<<
m_swProcessingTime
.
ToString
()
<<
" avg DSP load = "
<<
m_swProcessingTime
.
mean
()
*
m_dSamplerate
/
m_uiBlocklength
*
1e2
);
VA_VERBOSE
(
"AudioStreaming"
,
"Processing time: "
<<
m_swProcessingTime
.
ToString
()
<<
"
,
avg DSP load = "
<<
m_swProcessingTime
.
mean
()
*
m_dSamplerate
/
m_uiBlocklength
*
1e2
<<
"%"
);
}
// Not thread safe, not reentrant safe
...
...
src/VACoreImpl.cpp
View file @
880b81e2
...
...
@@ -472,6 +472,7 @@ void CVACoreImpl::Initialize() {
{
m_pInputAmp
=
new
ITAStreamAmplifier
(
pInputTail
,
(
float
)
m_dInputGain
);
m_pInputStreamDetector
=
new
ITAStreamDetector
(
m_pInputAmp
);
m_pInputStreamDetector
->
SetProfilerEnabled
(
true
);
pInputTail
=
m_pInputStreamDetector
;
if
(
m_oCoreConfig
.
bRecordDeviceInputEnabled
)
...
...
@@ -536,6 +537,7 @@ void CVACoreImpl::Initialize() {
// Create output peak detector that uses patch bay output stream
m_pOutputStreamDetector
=
new
ITAStreamDetector
(
m_pOutputPatchbay
->
GetOutputDatasource
(
iPhysicalHardwareOutput
)
);
m_pOutputStreamDetector
->
SetProfilerEnabled
(
true
);
// Setup output dump (if set)
...
...
@@ -793,6 +795,9 @@ void CVACoreImpl::Finalize()
delete
m_pInputAmp
;
m_pInputAmp
=
nullptr
;
if
(
m_pInputStreamDetector
)
if
(
m_pInputStreamDetector
->
GetProfilerEnabled
()
)
VA_VERBOSE
(
"Core"
,
"Input stream detector profiler: "
<<
m_pInputStreamDetector
->
GetProfilerResult
()
);
delete
m_pInputStreamDetector
;
m_pInputStreamDetector
=
nullptr
;
...
...
@@ -804,6 +809,8 @@ void CVACoreImpl::Finalize()
delete
m_pOutputPatchbay
;
m_pOutputPatchbay
=
nullptr
;
if
(
m_pOutputStreamDetector
->
GetProfilerEnabled
()
)
VA_VERBOSE
(
"Core"
,
"Output stream detector profiler: "
<<
m_pOutputStreamDetector
->
GetProfilerResult
()
);
delete
m_pOutputStreamDetector
;
m_pOutputStreamDetector
=
nullptr
;
...
...
@@ -879,7 +886,7 @@ void CVACoreImpl::GetModules( std::vector< CVAModuleInfo >& viModuleInfos ) cons
viModuleInfos
[
i
].
sName
=
v
[
i
].
sName
;
viModuleInfos
[
i
].
sDesc
=
v
[
i
].
sDesc
;
}
}
}
VA_RETHROW
;
#else // VACORE_MODULE_INTERFACE_ENABLED
...
...
@@ -888,7 +895,7 @@ void CVACoreImpl::GetModules( std::vector< CVAModuleInfo >& viModuleInfos ) cons
#endif // VACORE_MODULE_INTERFACE_ENABLED
}
}
CVAStruct
CVACoreImpl
::
CallModule
(
const
std
::
string
&
sModuleName
,
const
CVAStruct
&
oArgs
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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