Update the start sample between blocks in the ram audio provider correctly

This commit is contained in:
Thomas Goyne 2014-04-24 19:08:05 -07:00
parent cef07785d7
commit 6ee1b8ca52
1 changed files with 1 additions and 2 deletions

View File

@ -104,9 +104,8 @@ void RAMAudioProvider::FillBuffer(void *buf, int64_t start, int64_t count) const
memcpy(charbuf, &blockcache[i][start_offset], read_size);
charbuf += read_size;
bytes_remaining -= read_size;
start += CacheBlockSize / bytes_per_sample;
start += read_size / bytes_per_sample;
}
}
}