hydrogen-music / hydrogen

The advanced drum machine for Linux, macOS, and Windows
http://www.hydrogen-music.org
GNU General Public License v2.0
1.01k stars 172 forks source link

Sampler: refactoring #1877

Closed theGreatWhiteShark closed 9 months ago

theGreatWhiteShark commented 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)

Addresses #1873

theGreatWhiteShark commented 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...

theGreatWhiteShark commented 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...

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.