* Reads metainfo from the specified file. */
| 479 | * Reads metainfo from the specified file. |
| 480 | */ |
| 481 | static bool |
| 482 | wavpack_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 | |
| 500 | static bool |
| 501 | wavpack_scan_stream(InputStream &is, TagHandler &handler) |
nothing calls this directly
no test coverage detected