sornas / lingon

1 stars 0 forks source link

Audio pitch #42

Closed sornas closed 3 years ago

sornas commented 3 years ago

We use the default which seems to be 8192 f32s. Quick math:

8192 floats / 2 channels = 4096 samples. 4096 samples / 48000 Hz sample rate = ~85 ms delay.

I lowered it to 1024 samples for ~21 ms delay which seems fine.

FredTheDino commented 3 years ago

We use the default which seems to be 8192 f32s. Quick math:

8192 floats / 2 channels = 4096 samples. 4096 samples / 48000 Hz sample rate = ~85 ms delay.

I lowered it to 1024 samples for ~21 ms delay which seems fine.

It looks like you counted wrong though. Lowering the buffer size by 8 times, should give us 1th the delay. So I suspect it's closer to 10ms.

sornas commented 3 years ago

No, 1024 samples and 2 channels means 2048 floats.

sornas commented 3 years ago

f0d4ad0 is the quick and dirty solution. We could do something with results but... yeah. Maybe later if it's needed at all.