| 498 | } |
| 499 | |
| 500 | static bool |
| 501 | wavpack_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 | |
| 521 | static constexpr const char *wavpack_suffixes[] = { |
| 522 | "wv", |
nothing calls this directly
no test coverage detected