sdl12-compat: dr_mp3: Remove the "decode whole MP3 at once" functions, as we only stream.

From b8eb1765c7b06b4de248d56691b3c9cf17d17e98 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Mon, 7 Jun 2021 19:27:29 -0400
Subject: [PATCH] dr_mp3: Remove the "decode whole MP3 at once" functions, as
 we only stream.

---
 src/SDL12_compat.c | 1 +
 src/dr_mp3.h       | 5 ++++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/SDL12_compat.c b/src/SDL12_compat.c
index be51cef..46bd4c0 100644
--- a/src/SDL12_compat.c
+++ b/src/SDL12_compat.c
@@ -5694,6 +5694,7 @@ SDL_LoadWAV_RW(SDL12_RWops *rwops12, int freerwops12,
 #define DR_MP3_NO_STDIO 1
 #define DR_MP3_NO_S16 1
 #define DR_MP3_FLOAT_OUTPUT 1
+#define DR_MP3_NO_FULL_READ 1
 #define DRMP3_ASSERT(x) SDL_assert((x))
 #define DRMP3_MALLOC(sz) SDL20_malloc((sz))
 #define DRMP3_REALLOC(p, sz) SDL20_realloc((p), (sz))
diff --git a/src/dr_mp3.h b/src/dr_mp3.h
index c280a56..8f86054 100644
--- a/src/dr_mp3.h
+++ b/src/dr_mp3.h
@@ -483,6 +483,7 @@ Use drmp3_calculate_seek_points() to calculate the seek points.
 DRMP3_API drmp3_bool32 drmp3_bind_seek_table(drmp3* pMP3, drmp3_uint32 seekPointCount, drmp3_seek_point* pSeekPoints);
 
 
+#ifndef DR_MP3_NO_FULL_READ
 /*
 Opens an decodes an entire MP3 stream as a single operation.
 
@@ -506,6 +507,7 @@ DRMP3_API float* drmp3_open_file_and_read_pcm_frames_f32(const char* filePath, d
 DRMP3_API drmp3_int16* drmp3_open_file_and_read_pcm_frames_s16(const char* filePath, drmp3_config* pConfig, drmp3_uint64* pTotalFrameCount, const drmp3_allocation_callbacks* pAllocationCallbacks);
 #endif
 #endif
+#endif
 
 /*
 Allocates a block of memory on the heap.
@@ -4161,7 +4163,7 @@ DRMP3_API drmp3_bool32 drmp3_bind_seek_table(drmp3* pMP3, drmp3_uint32 seekPoint
     return DRMP3_TRUE;
 }
 
-
+#ifndef DR_MP3_NO_FULL_READ
 static float* drmp3__full_read_and_close_f32(drmp3* pMP3, drmp3_config* pConfig, drmp3_uint64* pTotalFrameCount)
 {
     drmp3_uint64 totalFramesRead = 0;
@@ -4365,6 +4367,7 @@ DRMP3_API drmp3_int16* drmp3_open_file_and_read_pcm_frames_s16(const char* fileP
 }
 #endif
 #endif
+#endif
 
 DRMP3_API void* drmp3_malloc(size_t sz, const drmp3_allocation_callbacks* pAllocationCallbacks)
 {