mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-18 20:47:39 -04:00
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:
parent
dc496d6fbe
commit
a266ff185a
2 changed files with 9 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue