| 53 | } |
| 54 | |
| 55 | static ModPlugFile * |
| 56 | LoadModPlugFile(DecoderClient *client, InputStream &is) |
| 57 | { |
| 58 | const auto buffer = mod_loadfile(&modplug_domain, client, is); |
| 59 | if (buffer == nullptr) { |
| 60 | LogWarning(modplug_domain, "could not load stream"); |
| 61 | return nullptr; |
| 62 | } |
| 63 | |
| 64 | ModPlugFile *f = ModPlug_Load(buffer.data(), buffer.size()); |
| 65 | return f; |
| 66 | } |
| 67 | |
| 68 | static void |
| 69 | mod_decode(DecoderClient &client, InputStream &is) |
no test coverage detected