Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
miniaudio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
miniaudio
Commits
c6f54e12
Commit
c6f54e12
authored
Apr 17, 2019
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update dr_flac.
parent
2571009c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
17 deletions
+6
-17
extras/dr_flac.h
extras/dr_flac.h
+6
-17
No files found.
extras/dr_flac.h
View file @
c6f54e12
// FLAC audio decoder. Public domain. See "unlicense" statement at the end of this file.
// FLAC audio decoder. Public domain. See "unlicense" statement at the end of this file.
// dr_flac - v0.11.
3 - 2018-04-0
7
// dr_flac - v0.11.
4 - 2018-04-1
7
//
//
// David Reid - mackron@gmail.com
// David Reid - mackron@gmail.com
...
@@ -1085,6 +1085,8 @@ static DRFLAC_INLINE drflac_bool32 drflac__is_little_endian()
...
@@ -1085,6 +1085,8 @@ static DRFLAC_INLINE drflac_bool32 drflac__is_little_endian()
{
{
#if defined(DRFLAC_X86) || defined(DRFLAC_X64)
#if defined(DRFLAC_X86) || defined(DRFLAC_X64)
return
DRFLAC_TRUE
;
return
DRFLAC_TRUE
;
#elif defined(__BYTE_ORDER) && defined(__LITTLE_ENDIAN) && __BYTE_ORDER == __LITTLE_ENDIAN
return
DRFLAC_TRUE
;
#else
#else
int
n
=
1
;
int
n
=
1
;
return
(
*
(
char
*
)
&
n
)
==
1
;
return
(
*
(
char
*
)
&
n
)
==
1
;
...
@@ -1150,55 +1152,39 @@ static DRFLAC_INLINE drflac_uint64 drflac__swap_endian_uint64(drflac_uint64 n)
...
@@ -1150,55 +1152,39 @@ static DRFLAC_INLINE drflac_uint64 drflac__swap_endian_uint64(drflac_uint64 n)
static
DRFLAC_INLINE
drflac_uint16
drflac__be2host_16
(
drflac_uint16
n
)
static
DRFLAC_INLINE
drflac_uint16
drflac__be2host_16
(
drflac_uint16
n
)
{
{
#ifdef __linux__
return
be16toh
(
n
);
#else
if
(
drflac__is_little_endian
())
{
if
(
drflac__is_little_endian
())
{
return
drflac__swap_endian_uint16
(
n
);
return
drflac__swap_endian_uint16
(
n
);
}
}
return
n
;
return
n
;
#endif
}
}
static
DRFLAC_INLINE
drflac_uint32
drflac__be2host_32
(
drflac_uint32
n
)
static
DRFLAC_INLINE
drflac_uint32
drflac__be2host_32
(
drflac_uint32
n
)
{
{
#ifdef __linux__
return
be32toh
(
n
);
#else
if
(
drflac__is_little_endian
())
{
if
(
drflac__is_little_endian
())
{
return
drflac__swap_endian_uint32
(
n
);
return
drflac__swap_endian_uint32
(
n
);
}
}
return
n
;
return
n
;
#endif
}
}
static
DRFLAC_INLINE
drflac_uint64
drflac__be2host_64
(
drflac_uint64
n
)
static
DRFLAC_INLINE
drflac_uint64
drflac__be2host_64
(
drflac_uint64
n
)
{
{
#ifdef __linux__
return
be64toh
(
n
);
#else
if
(
drflac__is_little_endian
())
{
if
(
drflac__is_little_endian
())
{
return
drflac__swap_endian_uint64
(
n
);
return
drflac__swap_endian_uint64
(
n
);
}
}
return
n
;
return
n
;
#endif
}
}
static
DRFLAC_INLINE
drflac_uint32
drflac__le2host_32
(
drflac_uint32
n
)
static
DRFLAC_INLINE
drflac_uint32
drflac__le2host_32
(
drflac_uint32
n
)
{
{
#ifdef __linux__
return
le32toh
(
n
);
#else
if
(
!
drflac__is_little_endian
())
{
if
(
!
drflac__is_little_endian
())
{
return
drflac__swap_endian_uint32
(
n
);
return
drflac__swap_endian_uint32
(
n
);
}
}
return
n
;
return
n
;
#endif
}
}
...
@@ -7996,6 +7982,9 @@ drflac_bool32 drflac_next_cuesheet_track(drflac_cuesheet_track_iterator* pIter,
...
@@ -7996,6 +7982,9 @@ drflac_bool32 drflac_next_cuesheet_track(drflac_cuesheet_track_iterator* pIter,
// REVISION HISTORY
// REVISION HISTORY
//
//
// v0.11.4 - 2018-04-17
// - Fix some warnings with GCC when compiling with -std=c99.
//
// v0.11.3 - 2018-04-07
// v0.11.3 - 2018-04-07
// - Silence warnings with GCC.
// - Silence warnings with GCC.
//
//
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment