small change
This commit is contained in:
parent
74cb27d2bc
commit
a7a90201c2
2 changed files with 4 additions and 2 deletions
|
@ -83,7 +83,7 @@ void CSocket::SendPacket ( const CVector<unsigned char>& vecbySendBuf,
|
||||||
void CSocket::OnDataReceived()
|
void CSocket::OnDataReceived()
|
||||||
{
|
{
|
||||||
/* read block from network interface */
|
/* 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 );
|
MAX_SIZE_BYTES_NETW_BUF );
|
||||||
|
|
||||||
/* check if an error occurred */
|
/* check if an error occurred */
|
||||||
|
@ -105,7 +105,7 @@ void CSocket::OnDataReceived()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch ( pChannel->PutData( vecbyRecBuf, iNumBytesRead ) )
|
switch ( pChannel->PutData ( vecbyRecBuf, iNumBytesRead ) )
|
||||||
{
|
{
|
||||||
case PS_AUDIO_OK:
|
case PS_AUDIO_OK:
|
||||||
PostWinMessage ( MS_JIT_BUF_PUT, MUL_COL_LED_GREEN );
|
PostWinMessage ( MS_JIT_BUF_PUT, MUL_COL_LED_GREEN );
|
||||||
|
|
|
@ -229,11 +229,13 @@ bool CSound::Write ( CVector<short>& psData )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
// copy stereo data from input in soundcard buffer
|
// copy stereo data from input in soundcard buffer
|
||||||
for ( i = 0; i < iBufferSize; i++ )
|
for ( i = 0; i < iBufferSize; i++ )
|
||||||
{
|
{
|
||||||
psPlaybackBuffer[iIndexDoneBuf][i] = psData[i];
|
psPlaybackBuffer[iIndexDoneBuf][i] = psData[i];
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
// now, send the current block
|
// now, send the current block
|
||||||
AddOutBuffer ( iIndexDoneBuf );
|
AddOutBuffer ( iIndexDoneBuf );
|
||||||
|
|
Loading…
Reference in a new issue