From 24a3209682ec0758ba9b277eb69d8c5c5322fca3 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Fri, 14 Jul 2023 04:11:04 -0700 Subject: [PATCH] Correct the decimator sample latency The latency is half of the FIFO, or half the filter size, and each byte is 8 samples, so return the value accordingly. Signed-off-by: Christopher Snowhill --- Audio/Chain/ChunkList.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Audio/Chain/ChunkList.m b/Audio/Chain/ChunkList.m index 2bfa92d48..71cc6a5f4 100644 --- a/Audio/Chain/ChunkList.m +++ b/Audio/Chain/ChunkList.m @@ -217,7 +217,7 @@ static void dsd2pcm_reset(void *_state) { static int dsd2pcm_latency(void *_state) { struct dsd2pcm_state *state = (struct dsd2pcm_state *)_state; if(state) - return state->FIFO_LENGTH; + return state->FILT_LOOKUP_PARTS * 8; else return 0; }