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

Function wavpack_scan_stream

src/decoder/plugins/WavpackDecoderPlugin.cxx:500–519  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

498}
499
500static bool
501wavpack_scan_stream(InputStream &is, TagHandler &handler)
502{
503 WavpackInput isp(nullptr, is);
504
505 WavpackContext *wpc;
506 try {
507 wpc = WavpackOpenInput(mpd_is_reader, &isp, nullptr,
508 OPEN_DSD_FLAG, 0);
509 } catch (...) {
510 return false;
511 }
512
513 AtScopeExit(wpc) {
514 WavpackCloseFile(wpc);
515 };
516
517 Scan(wpc, handler);
518 return true;
519}
520
521static constexpr const char *wavpack_suffixes[] = {
522 "wv",

Callers

nothing calls this directly

Calls 2

WavpackOpenInputFunction · 0.85
ScanFunction · 0.70

Tested by

no test coverage detected