From a8fea3f6572a59183bcaf66b04003925b17dbfad Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Thu, 4 Aug 2022 18:02:49 -0700 Subject: [PATCH] [GME Input] Correct old comment in the code There has been an API in GME to detect tracks ending for quite some time now, and this just adds a little bit to the existing comment, which previously noted that there was no way to detect if a track had ended, which may have been true several major versions of GME long past. Signed-off-by: Christopher Snowhill --- Plugins/GME/GameDecoder.m | 1 + 1 file changed, 1 insertion(+) diff --git a/Plugins/GME/GameDecoder.m b/Plugins/GME/GameDecoder.m index f5974cf6e..374c0a7b3 100644 --- a/Plugins/GME/GameDecoder.m +++ b/Plugins/GME/GameDecoder.m @@ -197,6 +197,7 @@ gme_err_t readCallback(void *data, void *out, int count) { // Some formats support length, but we'll add that in the future. //(From gme.txt) If track length, then use it. If loop length, play for intro + loop * 2. Otherwise, default to 2.5 minutes // GME will always generate samples. There's no real EOS. + // Addendum: The above gme_track_ended() call has been in place for years now [chunk assignSamples:sampleBuffer frameCount:frames];