Commit 65752f4f authored by Anne Heimes's avatar Anne Heimes

bugfixes

parent 72011a7c
...@@ -66,7 +66,7 @@ public: ...@@ -66,7 +66,7 @@ public:
int iBlockSize; int iBlockSize;
int iRingBufferSize; int iRingBufferSize;
int iTargetSampleLatency; int iTargetSampleLatency;
int dTimeIntervalSendInfos; double dTimeIntervalSendInfos;
inline StreamingParameters() inline StreamingParameters()
{ {
......
...@@ -102,12 +102,12 @@ bool CITANetAudioStreamingClient::Connect( const std::string& sAddress, int iPor ...@@ -102,12 +102,12 @@ bool CITANetAudioStreamingClient::Connect( const std::string& sAddress, int iPor
while ( !m_pMessage->ReadMessage( 0 ) ); while ( !m_pMessage->ReadMessage( 0 ) );
assert( m_pMessage->GetMessageType( ) == CITANetAudioProtocol::NP_SERVER_OPEN ); assert( m_pMessage->GetMessageType( ) == CITANetAudioProtocol::NP_SERVER_OPEN );
CITANetAudioProtocol::StreamingParameters oServerParas = m_pMessage->ReadStreamingParameters(); m_oParams.dTimeIntervalSendInfos = m_pMessage->ReadDouble();
m_oParams.dTimeIntervalSendInfos = oServerParas.dTimeIntervalSendInfos;
if (!(oServerParas == m_oParams)) if (m_oParams.dTimeIntervalSendInfos <= 0)
ITA_EXCEPT1( INVALID_PARAMETER, "Streaming server declined connection, detected streaming parameter mismatch." ); ITA_EXCEPT1( INVALID_PARAMETER, "Streaming server declined connection, detected streaming parameter mismatch." );
m_dLastAckknowlengementTimeStamp = 0;
Run(); Run();
return true; return true;
......
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