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

Function Scan

src/decoder/plugins/WavpackDecoderPlugin.cxx:465–476  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

463}
464
465static void
466Scan(WavpackContext *wpc,TagHandler &handler) noexcept
467{
468 try {
469 handler.OnAudioFormat(CheckAudioFormat(wpc));
470 } catch (...) {
471 }
472
473 const auto duration = GetDuration(wpc);
474 if (!duration.IsNegative())
475 handler.OnDuration(SongTime(duration));
476}
477
478/*
479 * Reads metainfo from the specified file.

Callers 2

wavpack_scan_fileFunction · 0.70
wavpack_scan_streamFunction · 0.70

Calls 4

CheckAudioFormatFunction · 0.70
GetDurationFunction · 0.70
OnAudioFormatMethod · 0.45
OnDurationMethod · 0.45

Tested by

no test coverage detected