Commit 0525a6f9 authored by Max Kellermann's avatar Max Kellermann

decoder/wavpack: use WavpackSeekSample64() if available

parent 7b4305d8
......@@ -217,7 +217,12 @@ wavpack_decode(DecoderClient &client, WavpackContext *wpc, bool can_seek)
if (cmd == DecoderCommand::SEEK) {
if (can_seek) {
auto where = client.GetSeekFrame();
if (!WavpackSeekSample(wpc, where)) {
#ifdef OPEN_DSD_AS_PCM
bool success = WavpackSeekSample64(wpc, where);
#else
bool success = WavpackSeekSample(wpc, where);
#endif
if (!success) {
/* seek errors are fatal */
client.SeekError();
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment