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:
Michael Sevakis 2006-11-07 19:30:48 +00:00
parent 50deedc6c7
commit 5dd0775924

View file

@ -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);
}