mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
Give Vorbis a higher priority over MP3.
The reason for this is that the MP3 decoder does not currently have a good way of determining if the stream is actually a valid MP3 stream.
This commit is contained in:
@@ -20739,17 +20739,17 @@ mal_result mal_decoder_init(mal_decoder_read_proc onRead, mal_decoder_seek_proc
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#ifdef MAL_HAS_MP3
|
||||
#ifdef MAL_HAS_VORBIS
|
||||
if (result != MAL_SUCCESS) {
|
||||
result = mal_decoder_init_mp3__internal(&config, pDecoder);
|
||||
result = mal_decoder_init_vorbis__internal(&config, pDecoder);
|
||||
if (result != MAL_SUCCESS) {
|
||||
onSeek(pDecoder, 0, mal_seek_origin_start);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#ifdef MAL_HAS_VORBIS
|
||||
#ifdef MAL_HAS_MP3
|
||||
if (result != MAL_SUCCESS) {
|
||||
result = mal_decoder_init_vorbis__internal(&config, pDecoder);
|
||||
result = mal_decoder_init_mp3__internal(&config, pDecoder);
|
||||
if (result != MAL_SUCCESS) {
|
||||
onSeek(pDecoder, 0, mal_seek_origin_start);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user