Commit cb02e20d authored by Anne Heimes's avatar Anne Heimes

versuch client sendet von selsbt buffer infos - not running

parent acd7c91c
......@@ -125,11 +125,20 @@ bool CITANetAudioStreamingClient::LoopBody()
if( m_bStopIndicated )
return true;
// Send Puffer informationenen
if (iStreamingBlockId % 2 == 1)
{
m_pMessage->ResetMessage();
m_pMessage->SetMessageType(CITANetAudioProtocol::NP_CLIENT_SENDING_RINGBUFFER_FREE_SAMPLES);
m_pMessage->WriteInt(m_pStream->GetRingBufferFreeSamples());
m_pMessage->WriteMessage();
}
// Send message to server that samples can be received
m_pMessage->ResetMessage( );
// Read answer
if ( m_pMessage->ReadMessage( 0 ) )
m_pMessage->ResetMessage( );
if ( m_pMessage->ReadMessage( 1 ) )
{
int iMsgType = m_pMessage->GetMessageType( );
switch ( iMsgType )
......
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