-
-
Notifications
You must be signed in to change notification settings - Fork 218
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
*mix.Chunk.setVolume() fails on Windows 7 #98
Comments
Your LoadWAV calls are probably failing (at least it is for your project on my machine). Check that gameAudio.enemyHit et al. are not nil. I suspect that your sdl_mixer installation is not built with ogg support. That being said, perhaps some changes should be made to the sdl_mixer library:
Please try using this version of LoadWAV to see if your files are not being loaded. (the "errors" package must also be imported in sdl_mixer.go) |
Sorry, I screwed up. I built the game with go run outside the game folder... and then it couldn't find the asset files and threw this exception. More idiomatic error handling for sdl_mixer would be a nice thing though :) I implemented your loadWav function and got this output: Which of course make sense since the application is run from outside the intended folder. I'm closing this issue as "error exists between keyboard and chair". |
actually I am writing at the moment more ideomatic error for the mixer. But it's a compatibility changing. Especially SetVolume is now called like the original function just Volume, because it's also the getter. |
So I finally got everything compiling and running under Windows (Win 7 32 bit using MSYS and MinGW). However, one function call causes a cgo exception with the following output:
The offending function looks like this:
Line 27 in audio.go refers to the line containing "gameAudio.enemyHit.SetVolume(100)".
The entire project is available here: https://github.com/Decker108/revenge-of-the-gopher/tree/060094c0d2140bf9dacd10a4485c97813b49134f
The text was updated successfully, but these errors were encountered: