Guevara-chan/Raylib-Forever

The .bycopy pragma should be added to objects that are passed to raylib by value

Closed this issue · 2 comments

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.

Fixed on main. Merci.

I can confirm the new version works. Thank you!