Skip to content

Conversation

@bararchy
Copy link
Contributor

@bararchy bararchy commented Oct 18, 2025

See if you like my idea here.

The point it to avoid linking against the hacky c lib, instead, we just embed it into a crystal struct at compule time using macro magic.

you can validate with:

crystal eval 'require "./src/raylib-cr/audio"; puts "Sizes: #{sizeof(RAudio::MADataConverter)}, #{sizeof(RAudio::MAContext)}, #{sizeof(RAudio::MADevice)}, #{sizeof(RAudio::MAMutex)}"'

wdyt?

@sol-vin
Copy link
Owner

sol-vin commented Oct 18, 2025

Gonna go to work and when I come back I'll test this. Looks good though!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants