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:
parent
dba636a0fa
commit
cb185d2860
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue