Open alexanderlerch opened 2 years ago
https://github.com/medioqrity/2022-MUSI6106/blob/e16003d68633aeb13cdd4f77be47d3caf85460e1/src/inc/RingBuffer.h#L49
It's a very bad idea to increment the read index when you write something.
I had to remove this line and the line in https://github.com/medioqrity/2022-MUSI6106/blob/e16003d68633aeb13cdd4f77be47d3caf85460e1/src/inc/RingBuffer.h#L69 because your delay was 1 off because of this.
...depending on the order of function calls
https://github.com/medioqrity/2022-MUSI6106/blob/e16003d68633aeb13cdd4f77be47d3caf85460e1/src/inc/RingBuffer.h#L49
It's a very bad idea to increment the read index when you write something.
I had to remove this line and the line in https://github.com/medioqrity/2022-MUSI6106/blob/e16003d68633aeb13cdd4f77be47d3caf85460e1/src/inc/RingBuffer.h#L69 because your delay was 1 off because of this.