devkitPro / libctru

Homebrew development library for Nintendo 3DS/Horizon OS user mode (Arm11)

Home Page:https://libctru.devkitpro.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Document alignment requirements for ndspWaveBuf

camthehaxman opened this issue · comments

I spent quite a while fiddling with ndspChnWaveBufAdd to get audio to play and noticed that the examples allocate a buffer with linearAlloc (which aligns to a multiple of 0x80) and then store that in the ndspWaveBuf struct. Apparently, it does not function properly if the buffer is not aligned, but this is not mentioned anywhere.