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

Function wavpack_scan_file

src/decoder/plugins/WavpackDecoderPlugin.cxx:481–498  ·  view source on GitHub ↗

* Reads metainfo from the specified file. */

Source from the content-addressed store, hash-verified

479 * Reads metainfo from the specified file.
480 */
481static bool
482wavpack_scan_file(Path path_fs, TagHandler &handler) noexcept
483{
484 WavpackContext *wpc;
485
486 try {
487 wpc = WavpackOpenInput(path_fs, OPEN_DSD_FLAG, 0);
488 } catch (...) {
489 return false;
490 }
491
492 AtScopeExit(wpc) {
493 WavpackCloseFile(wpc);
494 };
495
496 Scan(wpc, handler);
497 return true;
498}
499
500static bool
501wavpack_scan_stream(InputStream &is, TagHandler &handler)

Callers

nothing calls this directly

Calls 2

WavpackOpenInputFunction · 0.85
ScanFunction · 0.70

Tested by

no test coverage detected