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
d1a7c9b8
Commit
d1a7c9b8
authored
Feb 21, 2018
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make Vorbis a lower priority over FLAC.
parent
f89fbe04
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
mini_al.h
mini_al.h
+4
-8
No files found.
mini_al.h
View file @
d1a7c9b8
...
...
@@ -11817,17 +11817,17 @@ mal_result mal_decoder_init(mal_decoder_read_proc onRead, mal_decoder_seek_proc
}
}
#endif
#ifdef MAL_HAS_
VORBIS
#ifdef MAL_HAS_
FLAC
if
(
result
!=
MAL_SUCCESS
)
{
result
=
mal_decoder_init_
vorbis
__internal
(
&
config
,
pDecoder
);
result
=
mal_decoder_init_
flac
__internal
(
&
config
,
pDecoder
);
if
(
result
!=
MAL_SUCCESS
)
{
onSeek
(
pDecoder
,
0
,
mal_seek_origin_start
);
}
}
#endif
#ifdef MAL_HAS_
FLAC
#ifdef MAL_HAS_
VORBIS
if
(
result
!=
MAL_SUCCESS
)
{
result
=
mal_decoder_init_
flac
__internal
(
&
config
,
pDecoder
);
result
=
mal_decoder_init_
vorbis
__internal
(
&
config
,
pDecoder
);
if
(
result
!=
MAL_SUCCESS
)
{
onSeek
(
pDecoder
,
0
,
mal_seek_origin_start
);
}
...
...
@@ -11838,8 +11838,6 @@ mal_result mal_decoder_init(mal_decoder_read_proc onRead, mal_decoder_seek_proc
return
result
;
}
return
result
;
}
...
...
@@ -12067,8 +12065,6 @@ mal_result mal_decoder_init_file(const char* pFilePath, const mal_decoder_config
mal_decoder__on_seek_stdio
(
pDecoder
,
0
,
mal_seek_origin_start
);
}
// Trial and error.
return
mal_decoder_init
(
mal_decoder__on_read_stdio
,
mal_decoder__on_seek_stdio
,
(
void
*
)
pFile
,
pConfig
,
pDecoder
);
}
...
...
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