Closed theGreatWhiteShark closed 9 months ago
The rendering unit tests fail due to a problem which might be unrelated to the Sampler itself. It's src/tests/CoreActionControllerTest.cpp and in particular the tear down method which messes things up. Commenting it and the rendering tests pass just fine. Seems creating and assigning an empty song has some strange side effects. I'll check (next week)
We are seriously talking about a single frame which is consistently off 😅 . Well...
The rendering unit tests fail due to a problem which might be unrelated to the Sampler itself. It's src/tests/CoreActionControllerTest.cpp and in particular the tear down method which messes things up. Commenting it and the rendering tests pass just fine. Seems creating and assigning an empty song has some strange side effects. I'll check (next week)
We are seriously talking about a single frame which is consistently off 😅 . Well...
Turns out it was a bug in the refactoring after all. In case of no resampling the Sampler
read one frame beyond the Sample
buffer.
Sampler::renderNoteResample
andSampler::renderNoteNoResample
have been fused and just the former one survived.The rendering unit tests fail due to a problem which might be unrelated to the
Sampler
itself. It'ssrc/tests/CoreActionControllerTest.cpp
and in particular the tear down method which messes things up. Commenting it and the rendering tests pass just fine. Seems creating and assigning an empty song has some strange side effects. I'll check (next week)Addresses #1873