From 96f2a382ee3372f9804d85a751394c14cff9f413 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Tue, 15 Feb 2022 02:29:06 -0800 Subject: [PATCH] DSD gaplessness, part 3, mildly pointless In the rare event that we're somehow playing decimated DSD at full sample rate instead of resampling, only the start needs to be skipped, and the end needs the input to the decimator padded to flush it, but nothing needs to be truncated from the end of the output in that case. Still, mostly pointless, since next to nobody will be outputting 384 kHz from their Macs, in any case, much less unprocessed DSD. Signed-off-by: Christopher Snowhill --- Audio/Chain/ConverterNode.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Audio/Chain/ConverterNode.m b/Audio/Chain/ConverterNode.m index 05f54f217..1affeeb03 100644 --- a/Audio/Chain/ConverterNode.m +++ b/Audio/Chain/ConverterNode.m @@ -677,8 +677,8 @@ tryagain: bytesReadFromInput += N_samples_to_add_ * floatFormat.mBytesPerPacket; latencyEatenPost = N_samples_to_drop_; is_postextrapolated_ = 2; - } else if(is_postextrapolated_ == 3) { // skip end of DSD output - latencyEatenPost = dsd2pcmLatency; + } else if(is_postextrapolated_ == 3) { // No need to skip the end + latencyEatenPost = 0; } // Input now contains bytesReadFromInput worth of floats, in the input sample rate