Ogg playback with GLFW not working on PC or Mac
Monkey Targets Forums/Desktop/Ogg playback with GLFW not working on PC or Mac
| ||
I am trying to use the PlayMusic command to play an ogg music file. It is not working on the mac nor the PC. There is no error message, it is simply silence. When I use the exact same code, and change it to a wav file, it works perfect on both platforms. OpenAL appears to be properly installed. Has anyone else been able to get .ogg files playing? |
| ||
OK, manage to find elsewhere that GLFW doesn't support anything but .wav files. Does anyone know if there is any plans to expand the filetypes that GLFW can use? It is a pretty big limitation to only be able to use uncompressed audio files. |
| ||
That is really a showstopper. Glfw should support at least ogg or mp3 for music playback. Seeing that most targets support mp3 maybe effort should be invested in that direction so we can have a all in one format. |
| ||
Hi, Ogg for glfw is coming! |
| ||
Ta Da! :D |
| ||
Yes :) |
| ||
Nice :) |
| ||
Thanks Mark! That is super appreciated! |
| ||
Any news on this? would really be cool to have .ogg on GLFW :) |
| ||
The vorbis loader was added in v59: http://www.monkeycoder.co.nz/Community/post.php?topic=3047&post=31026 glfw - added stb_vorbis loader (doesn't stream yet) and loadSound/unloadSound functions |
| ||
ah probably I didn't hear sounds because it doesn't stream yet! thanks |
| ||
How are we supposed to playback ogg music? When I use LoadSound/PlaySound or PlayMusic with an ogg file the app simply crashes (mac). EDIT: Ok, when I use PlayMusic it just doesn't play the file (doesn't crash) |
| ||
Bump. Anyone knows how to do this? |
| ||
This issue with crashing is because occasionally, not all the data files are being copied over each when building with GLFW now for some odd reason. Perhaps something to do with the new debug feature. However, it *does* actually play the .ogg file now. Its just that the .ogg file not being copied over into the final build folder like on other targets. When you copy the .ogg file over manually, it will play it - using PlayMusic(). This is probably a bug. |
| ||
This issue should be fixed now in the v62 update. |
| ||
And if you don't want to update yet, just add:#SOUND_FILES=*.wav|*.ogg #MUSIC_FILES=*.wav|*.ogg To the top of your project file. |