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 <kode54@gmail.com>
This commit is contained in:
Christopher Snowhill 2023-07-14 04:11:04 -07:00
parent 555b9f248d
commit 24a3209682
No known key found for this signature in database

View file

@ -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;
}