From fcda380f852240d07110e86697e98e34986e0f46 Mon Sep 17 00:00:00 2001 From: David Reid Date: Fri, 27 Apr 2018 21:33:47 +1000 Subject: [PATCH] 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. --- mini_al.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mini_al.h b/mini_al.h index b242ab91..ed024495 100644 --- a/mini_al.h +++ b/mini_al.h @@ -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); }