Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request to add ExportWaveAsCode #402

Open
sandy-30 opened this issue Jul 27, 2024 · 3 comments
Open

Request to add ExportWaveAsCode #402

sandy-30 opened this issue Jul 27, 2024 · 3 comments

Comments

@sandy-30
Copy link

Raylib has an API to export wave as array data ExportWaveAsCode.

With go bindings we can use it for tooling. I can raise a PR if required.

@gen2brain
Copy link
Owner

But that export C code, what is the use of C code in Go bindings?

@sandy-30
Copy link
Author

sandy-30 commented Jul 28, 2024

In my usecase it's for tooling, my game is in cpp, but I am planning to have some external tool support that ai my dev workflow. Maily to inport sound files (in any format), convert them to wave with ffmepg (ffmpeg-go module) and generate hederfiles for he same.

There will be some more slicing and dicing of audio files, with in the tool. I don't want to get into it's nitty gritties.

@gen2brain
Copy link
Owner

I don't like the idea of adding just that one function, if I am to accept this (which I prefer not to) then all AsCode functions should be added, of course for both cgo and purego. As that function is not so complicated you can replicate that in your code, I guess you would need a data member of the Wave struct to be exported, you can send a PR for that instead.

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

No branches or pull requests

2 participants