Calculation was wrong in pcmbuf_is_same_size such that is would almost certainly return false.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11460 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
50deedc6c7
commit
5dd0775924
1 changed files with 2 additions and 1 deletions
|
@ -383,7 +383,8 @@ static void pcmbuf_init_pcmbuffers(void) {
|
|||
bool pcmbuf_is_same_size(size_t bufsize)
|
||||
{
|
||||
/* keep calculations synced with pcmbuf_init */
|
||||
bufsize += PCMBUF_MIX_CHUNK * 2 + PCMBUF_DESCS(bufsize);
|
||||
bufsize += PCMBUF_MIX_CHUNK * 2 +
|
||||
PCMBUF_DESCS(bufsize)*sizeof(struct pcmbufdesc);
|
||||
return bufsize == (size_t)(pcmbuf_bufend - audiobuffer);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue