The .bycopy pragma should be added to objects that are passed to raylib by value
Closed this issue · 2 comments
Ryan1729 commented
I raised an issue on the Nim repo because I was having audio issues when trying to use Raylib-Forever.
Andreas Rumpf replied there that the .bycopy
pragma should be used on the object declarations. It appears like the pragma should be applied to all objects that are passed by value, rather than by pointer.
Just to confirm, I tried that fix on the reduced bug reproduction, and it solved the audio playback problem.
Guevara-chan commented
Fixed on main. Merci.
Ryan1729 commented
I can confirm the new version works. Thank you!