pdbox: Solved issue with WAV file import on big-endian targets (signed 16-bit files only); small I/O-related workaround in g_array.c

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26439 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Wincent Balin 2010-06-01 00:23:59 +00:00
parent dc496d6fbe
commit a266ff185a
2 changed files with 9 additions and 2 deletions

View file

@ -1154,7 +1154,7 @@ static void garray_read(t_garray *x, t_symbol *filename)
canvas_getdir(glist_getcanvas(x->x_glist))->s_name,
filename->s_name, "", buf, &bufptr, MAXPDSTRING, 0)) < 0
#ifdef ROCKBOX
)
|| !(fd = filedesc))
#else
|| !(fd = fdopen(filedesc, "r")))
#endif
@ -1234,7 +1234,7 @@ static void garray_read16(t_garray *x, t_symbol *filename,
canvas_getdir(glist_getcanvas(x->x_glist))->s_name,
filename->s_name, "", buf, &bufptr, MAXPDSTRING, 1)) < 0
#ifdef ROCKBOX
)
|| !(fd = filedesc))
#else
|| !(fd = fdopen(filedesc, BINREADMODE)))
#endif