forked from mia/Aegisub
Update the start sample between blocks in the ram audio provider correctly
This commit is contained in:
parent
cef07785d7
commit
6ee1b8ca52
1 changed files with 1 additions and 2 deletions
|
@ -104,9 +104,8 @@ void RAMAudioProvider::FillBuffer(void *buf, int64_t start, int64_t count) const
|
||||||
|
|
||||||
memcpy(charbuf, &blockcache[i][start_offset], read_size);
|
memcpy(charbuf, &blockcache[i][start_offset], read_size);
|
||||||
charbuf += read_size;
|
charbuf += read_size;
|
||||||
|
|
||||||
bytes_remaining -= read_size;
|
bytes_remaining -= read_size;
|
||||||
start += CacheBlockSize / bytes_per_sample;
|
start += read_size / bytes_per_sample;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue