Commit 4ac135c6 authored by Anne Heimes's avatar Anne Heimes

bugfixes

parent a898d8fd
...@@ -79,6 +79,7 @@ private: ...@@ -79,6 +79,7 @@ private:
bool m_bStopIndicated; bool m_bStopIndicated;
bool m_bStopped; bool m_bStopped;
double m_dLastAckknowlengementTimeStamp; double m_dLastAckknowlengementTimeStamp;
int n;
int iStreamingBlockId; int iStreamingBlockId;
ITABufferedDataLoggerImplClient* m_pClientLogger; ITABufferedDataLoggerImplClient* m_pClientLogger;
......
...@@ -53,7 +53,7 @@ CITANetAudioStreamingClient::CITANetAudioStreamingClient( CITANetAudioStream* pP ...@@ -53,7 +53,7 @@ CITANetAudioStreamingClient::CITANetAudioStreamingClient( CITANetAudioStream* pP
, m_bStopped( false ) , m_bStopped( false )
{ {
m_pClient = new CITANetAudioClient(); m_pClient = new CITANetAudioClient();
n = 0;
m_oParams.iChannels = pParent->GetNumberOfChannels(); m_oParams.iChannels = pParent->GetNumberOfChannels();
m_oParams.dSampleRate = pParent->GetSampleRate( ); m_oParams.dSampleRate = pParent->GetSampleRate( );
m_oParams.iBlockSize = pParent->GetBlocklength(); m_oParams.iBlockSize = pParent->GetBlocklength();
...@@ -160,6 +160,7 @@ bool CITANetAudioStreamingClient::LoopBody() ...@@ -160,6 +160,7 @@ bool CITANetAudioStreamingClient::LoopBody()
#ifdef NET_AUDIO_SHOW_TRAFFIC #ifdef NET_AUDIO_SHOW_TRAFFIC
vstr::out() << "[ITANetAudioStreamingClient] Recived " << m_sfReceivingBuffer.GetLength() << " samples" << std::endl; vstr::out() << "[ITANetAudioStreamingClient] Recived " << m_sfReceivingBuffer.GetLength() << " samples" << std::endl;
#endif #endif
n++;
break; break;
case CITANetAudioProtocol::NP_SERVER_GET_RINGBUFFER_FREE_SAMPLES: case CITANetAudioProtocol::NP_SERVER_GET_RINGBUFFER_FREE_SAMPLES:
m_pMessage->ReadBool(); m_pMessage->ReadBool();
......
...@@ -41,7 +41,7 @@ int main(int argc, char* argv[]) ...@@ -41,7 +41,7 @@ int main(int argc, char* argv[])
for ( int i = 0; i < N; i++ ) for ( int i = 0; i < N; i++ )
oPatchbay.ConnectChannels( 0, i, 0, i % 2, 1 / double( N ) ); oPatchbay.ConnectChannels( 0, i, 0, i % 2, 1 / double( N ) );
ITAStreamProbe oProbe( oPatchbay.GetOutputDatasource( iOutputID ), "ITANetAudioTest.stream.wav" ); //ITAStreamProbe oProbe( oPatchbay.GetOutputDatasource( iOutputID ), "ITANetAudioTest.stream.wav" );
ITAsioInitializeLibrary(); ITAsioInitializeLibrary();
...@@ -90,7 +90,7 @@ int main(int argc, char* argv[]) ...@@ -90,7 +90,7 @@ int main(int argc, char* argv[])
} }
ITAsioSetPlaybackDatasource(&oProbe); ITAsioSetPlaybackDatasource(oPatchbay.GetOutputDatasource(iOutputID));
if (ITAsioStart() != ASE_OK) { if (ITAsioStart() != ASE_OK) {
ITAsioFinalizeLibrary(); ITAsioFinalizeLibrary();
......
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