Skip to content

Commit

Permalink
Fix block 0 audio
Browse files Browse the repository at this point in the history
  • Loading branch information
KinoMyu committed Sep 23, 2019
1 parent 16a7246 commit 6a883d9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions clHCA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,13 @@ void clHCA::AsyncDecode(stChannel *channels, float *wavebuffer, unsigned int blo
unsigned int samplesize = _mode >> 3;
char *outwavptr = (char *)outputwavptr + (samplesize * blocknum * _channelCount << 10) + _wavheadersize;
unsigned int endblock = blocknum + chunksize;
if (blocknum == 0)
{
for (unsigned int i = 0; i < _channelCount; ++i)
{
memset(&(channels[i].wav2), 0, 0x80 * sizeof(float));
}
}
for (unsigned int currblock = blocknum ? blocknum - 1 : blocknum; currblock < endblock && currblock < _blockCount; ++currblock)
{
// if(((unsigned char *)data)[_blockSize-2]==0x5E)_asm int 3
Expand Down

0 comments on commit 6a883d9

Please sign in to comment.