--- rockbox-svn-trunk/apps/buffering.c 2008-12-26 12:59:48.681800000 -0500 +++ rockbox-19669-dmastats/apps/buffering.c 2009-01-05 12:55:34.892200000 -0500 @@ -932,7 +932,7 @@ size_t size = filesize(fd); bool can_wrap = type==TYPE_PACKET_AUDIO || type==TYPE_CODEC; - size_t adjusted_offset = offset; + size_t adjusted_offset = offset & ~3; if (adjusted_offset > size) adjusted_offset = 0; @@ -946,7 +946,7 @@ strncpy(h->path, file, MAX_PATH); h->offset = adjusted_offset; - h->ridx = buf_widx; + h->ridx = buf_widx + (offset & 3); h->data = buf_widx; h->type = type;