MCPcopy Create free account
hub / github.com/MusicPlayerDaemon/MPD / LoadModPlugFile

Function LoadModPlugFile

src/decoder/plugins/ModplugDecoderPlugin.cxx:55–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55static ModPlugFile *
56LoadModPlugFile(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
68static void
69mod_decode(DecoderClient &client, InputStream &is)

Callers 2

mod_decodeFunction · 0.85
modplug_scan_streamFunction · 0.85

Calls 1

mod_loadfileFunction · 0.85

Tested by

no test coverage detected