small change

This commit is contained in:
Volker Fischer 2007-12-28 21:39:16 +00:00
parent 74cb27d2bc
commit a7a90201c2
2 changed files with 4 additions and 2 deletions

View File

@ -83,7 +83,7 @@ void CSocket::SendPacket ( const CVector<unsigned char>& 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 );

View File

@ -229,11 +229,13 @@ bool CSound::Write ( CVector<short>& 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 );