Skip to content

Commit

Permalink
Correct the decimator sample latency
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
kode54 committed Jul 14, 2023
1 parent efd1349 commit ffbc571
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Audio/Chain/ChunkList.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ffbc571

Please sign in to comment.