Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Openvibe Group
extras
Commits
c715c617
Commit
c715c617
authored
Sep 30, 2015
by
Jussi Lindgren
Committed by
Serrière Guillaume
Oct 02, 2015
Browse files
Plugins: Minor code cleanup to TCP Writer
parent
48afa476
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/processing/network-io/src/box-algorithms/ovpCBoxAlgorithmTCPWriter.cpp
View file @
c715c617
...
...
@@ -288,6 +288,13 @@ boolean CBoxAlgorithmTCPWriter::process(void)
this
->
getLogManager
()
<<
LogLevel_Error
<<
"Only 1 and 2 dimensional matrices are supported
\n
"
;
return
false
;
}
// Conformance checking for all matrix based streams
if
(
m_ui32NumberOfChannels
==
0
||
m_ui32NumberOfSamplesPerChunk
==
0
)
{
this
->
getLogManager
()
<<
LogLevel_Error
<<
"For matrix-like inputs, both input dimensions must be larger than 0
\n
"
;
return
false
;
}
}
// Signal specific part
...
...
@@ -295,21 +302,12 @@ boolean CBoxAlgorithmTCPWriter::process(void)
{
m_ui32Frequency
=
static_cast
<
uint32
>
(
m_oSignalDecoder
.
getOutputSamplingRate
()
);
}
if
(
m_pActiveDecoder
==
&
m_oStimulationDecoder
)
{
// Stimulus, do nothing
}
// Conformance checking for all matrix based streams
if
(
m_pActiveDecoder
==
&
m_oMatrixDecoder
||
m_pActiveDecoder
==
&
m_oSignalDecoder
)
{
if
(
m_ui32NumberOfChannels
==
0
||
m_ui32NumberOfSamplesPerChunk
==
0
)
{
this
->
getLogManager
()
<<
LogLevel_Error
<<
"For matrix-like inputs, both input dimensions must be larger than 0
\n
"
;
return
false
;
}
}
}
if
(
m_pActiveDecoder
->
isBufferReceived
())
{
...
...
Write
Preview
Supports
Markdown
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