sointu/oto
5684185+vsariola@users.noreply.github.com 38e9007bf8 refactor: use [][2] as audio buffers, instead of []float32
Throughout sointu, we assume stereo audiobuffers, but were passing
around []float32. This had several issues, including len(buf)/2 and
numSamples*2 type of length conversion in many places. Also, it
caused one bug in a test case, causing it to succeed when it should
have not (the test had +-1 when it should have had +-2). This
refactoring makes it impossible to have odd length buffer issues.
2023-10-18 13:51:02 +03:00
..
convertbuffer_test.go refactor: use [][2] as audio buffers, instead of []float32 2023-10-18 13:51:02 +03:00
convertbuffer.go refactor: use [][2] as audio buffers, instead of []float32 2023-10-18 13:51:02 +03:00
oto.go refactor: use [][2] as audio buffers, instead of []float32 2023-10-18 13:51:02 +03:00