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 );