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