-
Notifications
You must be signed in to change notification settings - Fork 2
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
No Examples #12
Comments
Hi there! That's very cool to know! Great to see more doing game development in Go.
The tests for the
OverviewThe audio package Then there are decoders, the wav decoder All of this thus far just handles decoding WAV and FLAC files into raw PCM audio data. You would then need to send that raw audio data through some system API for playback. Easy PlaybackPrimarily I think the biggest problem you will run into is that there is not a easy-to-use playback package yet. This means you will have to hand off the data to a low-level API, e.g. OpenAL (via I do plan to have a package for this in version two, but my time is rather constrained right now while I add mobile and web support to the graphics core). |
Awesome, I'll take a crack at it tonight and probably get some feedback/questions ready for you tonight. Thanks for your help |
Ok got a question, once I have a buffer how do I go about playback though the OpenAL bindings? |
You'd basically have to translate a OpenAL tutorial (Google is your friend) into the Go equivalent using those bindings. The audio buffer can be passed to OpenAL via the unsafe package and taking a pointer to the sample slice. As mentioned though, it's not an easy / trivial thing to do. An easy-to-use playback package will come in the future, and will be built atop those OpenAL bindings most likely. I don't have any examples of audio playback anywhere yet, sorry. |
@metakeule thank you for sharing =) I think he wants an example of playing audio, however. @nwidger's nintengo recent NES emulator using |
Hey,
I've recently found your libraries - specifically the audio one - interesting, and am looking to (at least temporarily) integrate into my own game engine (https://github.com/paked/engi).
I noticed the lack of tutorials and/or sample code relating to this package (and its surrounding ones). I am more than happy to write something up, I just need information on how to do it.
Thanks for your work
The text was updated successfully, but these errors were encountered: