From a7a90201c27791fbc09fc3e0e30e351cf19b95b9 Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Fri, 28 Dec 2007 21:39:16 +0000 Subject: [PATCH] small change --- src/socket.cpp | 4 ++-- windows/sound.cpp | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/socket.cpp b/src/socket.cpp index 34f29832..31601c02 100755 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -83,7 +83,7 @@ void CSocket::SendPacket ( const CVector& vecbySendBuf, void CSocket::OnDataReceived() { /* read block from network interface */ - const int iNumBytesRead = SocketDevice.readBlock( (char*) &vecbyRecBuf[0], + const int iNumBytesRead = SocketDevice.readBlock ( (char*) &vecbyRecBuf[0], MAX_SIZE_BYTES_NETW_BUF ); /* check if an error occurred */ @@ -105,7 +105,7 @@ void CSocket::OnDataReceived() return; } - switch ( pChannel->PutData( vecbyRecBuf, iNumBytesRead ) ) + switch ( pChannel->PutData ( vecbyRecBuf, iNumBytesRead ) ) { case PS_AUDIO_OK: PostWinMessage ( MS_JIT_BUF_PUT, MUL_COL_LED_GREEN ); diff --git a/windows/sound.cpp b/windows/sound.cpp index 06943201..6171c96f 100755 --- a/windows/sound.cpp +++ b/windows/sound.cpp @@ -229,11 +229,13 @@ bool CSound::Write ( CVector& psData ) } } +/* // copy stereo data from input in soundcard buffer for ( i = 0; i < iBufferSize; i++ ) { psPlaybackBuffer[iIndexDoneBuf][i] = psData[i]; } +*/ // now, send the current block AddOutBuffer ( iIndexDoneBuf );