| 115 | } |
| 116 | |
| 117 | static bool |
| 118 | modplug_scan_stream(InputStream &is, TagHandler &handler) noexcept |
| 119 | { |
| 120 | ModPlugFile *f = LoadModPlugFile(nullptr, is); |
| 121 | if (f == nullptr) |
| 122 | return false; |
| 123 | |
| 124 | handler.OnDuration(SongTime::FromMS(ModPlug_GetLength(f))); |
| 125 | |
| 126 | const char *title = ModPlug_GetName(f); |
| 127 | if (title != nullptr) |
| 128 | handler.OnTag(TAG_TITLE, title); |
| 129 | |
| 130 | ModPlug_Unload(f); |
| 131 | |
| 132 | return true; |
| 133 | } |
| 134 | |
| 135 | static const char *const mod_suffixes[] = { |
| 136 | "669", "amf", "ams", "dbm", "dfm", "dsm", "far", "it", |
nothing calls this directly
no test coverage detected