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)
ITADataSources
Commits
65752f4f
Commit
65752f4f
authored
Mar 23, 2017
by
Anne Heimes
Browse files
bugfixes
parent
72011a7c
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/ITANetAudioProtocol.h
View file @
65752f4f
...
...
@@ -66,7 +66,7 @@ public:
int
iBlockSize
;
int
iRingBufferSize
;
int
iTargetSampleLatency
;
int
dTimeIntervalSendInfos
;
double
dTimeIntervalSendInfos
;
inline
StreamingParameters
()
{
...
...
src/ITANetAudioStreamingClient.cpp
View file @
65752f4f
...
...
@@ -102,12 +102,12 @@ bool CITANetAudioStreamingClient::Connect( const std::string& sAddress, int iPor
while
(
!
m_pMessage
->
ReadMessage
(
0
)
);
assert
(
m_pMessage
->
GetMessageType
(
)
==
CITANetAudioProtocol
::
NP_SERVER_OPEN
);
CITANetAudioProtocol
::
StreamingParameters
oServerParas
=
m_pMessage
->
ReadStreamingParameters
();
m_oParams
.
dTimeIntervalSendInfos
=
oServerParas
.
dTimeIntervalSendInfos
;
m_oParams
.
dTimeIntervalSendInfos
=
m_pMessage
->
ReadDouble
();
if
(
!
(
oServerParas
==
m_oParams
)
)
if
(
m_oParams
.
dTimeIntervalSendInfos
<=
0
)
ITA_EXCEPT1
(
INVALID_PARAMETER
,
"Streaming server declined connection, detected streaming parameter mismatch."
);
m_dLastAckknowlengementTimeStamp
=
0
;
Run
();
return
true
;
...
...
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