summaryrefslogtreecommitdiffstats
path: root/apps/plugins/pdbox
diff options
context:
space:
mode:
authorWincent Balin <wincent@rockbox.org>2010-05-24 23:13:37 +0000
committerWincent Balin <wincent@rockbox.org>2010-05-24 23:13:37 +0000
commitcb185d28603de67bff000071f12e563573dcdc8f (patch)
tree49c39b34ed517837d8a10b29e512ae839ee39324 /apps/plugins/pdbox
parentdba636a0fa33e2463c8f8ac3daa0b21f2797188c (diff)
downloadrockbox-cb185d28603de67bff000071f12e563573dcdc8f.tar.gz
rockbox-cb185d28603de67bff000071f12e563573dcdc8f.tar.bz2
rockbox-cb185d28603de67bff000071f12e563573dcdc8f.zip
pdbox: Successfully resolved issue with loading of audio files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26272 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/pdbox')
-rw-r--r--apps/plugins/pdbox/PDa/src/d_soundfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/pdbox/PDa/src/d_soundfile.c b/apps/plugins/pdbox/PDa/src/d_soundfile.c
index 67a80c9d3a..a23192319d 100644
--- a/apps/plugins/pdbox/PDa/src/d_soundfile.c
+++ b/apps/plugins/pdbox/PDa/src/d_soundfile.c
@@ -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