Skip to content

Commit 5e4dc81

Browse files
committed
Wavpack Input: Use correct seeking for large files
Yes, large files, especially DSD, can have sample counts exceeding the 32 bit limit. Signed-off-by: Christopher Snowhill <[email protected]>
1 parent 752e492 commit 5e4dc81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Plugins/WavPack/WavPackDecoder.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,12 +315,12 @@ - (AudioChunk *)readAudio {
315315
}
316316

317317
- (long)seek:(long)frame {
318-
uint32_t trueFrame = (uint32_t)frame;
318+
uint64_t trueFrame = (uint64_t)frame;
319319
if(isDSD) {
320320
trueFrame /= 8;
321321
frame = trueFrame * 8;
322322
}
323-
WavpackSeekSample(wpc, trueFrame);
323+
WavpackSeekSample64(wpc, trueFrame);
324324

325325
self->frame = frame;
326326

0 commit comments

Comments
 (0)