mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-12 06:32:34 -05:00
add gapless playback for Nero encoded AAC files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22984 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
67ded6ce9d
commit
c48af23c7e
3 changed files with 38 additions and 0 deletions
|
|
@ -124,6 +124,21 @@ int read_uint32be(int fd, uint32_t* buf)
|
|||
*buf = betoh32(*buf);
|
||||
return n;
|
||||
}
|
||||
/* Read an unsigned 64-bit integer from a big-endian file. */
|
||||
int read_uint64be(int fd, uint64_t* buf)
|
||||
{
|
||||
size_t n;
|
||||
uint8_t data[8];
|
||||
int i;
|
||||
|
||||
n = read(fd, data, 8);
|
||||
|
||||
for (i=0, *buf=0; i<=7; i++) {
|
||||
*buf <<= 8;
|
||||
*buf |= data[i];
|
||||
}
|
||||
return n;
|
||||
}
|
||||
#else
|
||||
/* Read unsigned integers from a little-endian file. */
|
||||
int read_uint16le(int fd, uint16_t* buf)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue