1
0
Fork 0
forked from len0rd/rockbox

pdbox: Successfully resolved issue with loading of audio files

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26272 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Wincent Balin 2010-05-24 23:13:37 +00:00
parent dba636a0fa
commit cb185d2860

View file

@ -1129,7 +1129,7 @@ static void soundfiler_read(t_soundfiler *x, t_symbol *s,
int thisread = finalsize - itemsread;
thisread = (thisread > bufframes ? bufframes : thisread);
#ifdef ROCKBOX
nitems = read(fp, sampbuf, thisread * bytespersamp * channels) / bytespersamp;
nitems = read(fp, sampbuf, thisread * bytespersamp * channels) / (bytespersamp * channels);
#else
nitems = fread(sampbuf, channels * bytespersamp, thisread, fp);
#endif