decoder/wavpack: use WavpackSeekSample64() if available
This commit is contained in:
parent
7b4305d81b
commit
0525a6f90f
@ -217,7 +217,12 @@ wavpack_decode(DecoderClient &client, WavpackContext *wpc, bool can_seek)
|
|||||||
if (cmd == DecoderCommand::SEEK) {
|
if (cmd == DecoderCommand::SEEK) {
|
||||||
if (can_seek) {
|
if (can_seek) {
|
||||||
auto where = client.GetSeekFrame();
|
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 */
|
/* seek errors are fatal */
|
||||||
client.SeekError();
|
client.SeekError();
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user