Closed philippe44 closed 9 months ago
I do remember the discussion, I think it was related to commit 11700c41a86f0b1e69f53d4c975a5175c2d0ae45 ?
I do remember the discussion, I think it was related to commit 11700c41a86f0b1e69f53d4c975a5175c2d0ae45 ?
Yes and I obviously hit my head on that one but I think this time my comment is correct 😄. It's finally working correctly on my esp32 version, where it was stuttering before because it started too early before buffer had enough data (in ogf livestream)
This is something we discussed a while ago I think. In output.c, we have to wait till we have enough pcm samples
But I don't think this is right and that bit me in the ogf fix I did: as frames is number of frames, it should not be multiplied by BYTES_PER_FRAMES. The threshold is in 1/10th of a second, and one count of sample_rate is one frame. So for 20 of threshold at 44100, we should have 2 sec = 88200 frames. But if we multiply the left member, current frames by BYTES_PER_FRAME, then we compare bytes and frames which is wrong and we end up starting way too early