A little coding help please - Audio Files #1519
-
I have been studying the code for the Audio example (https://ebiten.org/examples/audio.html). I think I kind of understand some of it, but there is a lot going on. I was hoping maybe you could whip up the absolute minimum code to play a WAV file called music.wav in the same folder as main.go using these two libraries:
I am not sure the first one would be required. I just want the go code to open the wav file and play it and then quit. Huge thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
https://github.com/hajimehoshi/ebiten/blob/master/examples/wav/main.go is the better example to perform playing a wav file with a minimal code. |
Beta Was this translation helpful? Give feedback.
-
Am I able to mark these discussions as answered? Trying to figure out how. Thanks everyone! |
Beta Was this translation helpful? Give feedback.
https://github.com/hajimehoshi/ebiten/blob/master/examples/wav/main.go is the better example to perform playing a wav file with a minimal code.