| 463 | } |
| 464 | |
| 465 | static void |
| 466 | Scan(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. |
no test coverage detected