First steps

This commit is contained in:
JusicP
2020-11-19 22:37:27 +02:00
parent 6920a3bd08
commit 3434111923
1341 changed files with 883624 additions and 46746 deletions

View File

@@ -2164,7 +2164,10 @@ int CWaveDataStreamAsync::ReadSourceData( void **pData, int sampleIndex, int sam
// past the end of the file? stop the wave.
if ( m_bufferCount <= 0 )
{
printf("ReadSourceData: m_bufferCount <= 0\n");
return 0;
}
// clamp available samples to buffer size
if ( m_bufferCount > m_bufferSize )
@@ -2228,6 +2231,7 @@ int CWaveDataStreamAsync::ReadSourceData( void **pData, int sampleIndex, int sam
m_bufferCount * m_sampleSize,
&postprocessed ) )
{
printf("ReadSourceData: !wavedatacache->CopyDataIntoMemory\n");
return 0;
}
@@ -2283,6 +2287,7 @@ int CWaveDataStreamAsync::ReadSourceData( void **pData, int sampleIndex, int sam
return available;
}
printf("ReadSourceData: return 0\n");
return 0;
}

View File

@@ -102,7 +102,7 @@ int CAudioMixerWaveMP3::StreamRequestData( void *pBuffer, int bytesRequested, in
void *pData = NULL;
int bytesRead = m_pData->ReadSourceData( &pData, offset + totalBytesRead, bytesRequested, pOutputBuffer );
if ( !bytesRead )
break;
if ( bytesRead > bytesRequested )