Ogg playback with GLFW not working on PC or Mac

Monkey Targets Forums/Desktop/Ogg playback with GLFW not working on PC or Mac

Rex Rhino(Posted 2012) [#1]
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?


Rex Rhino(Posted 2012) [#2]
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.


Shinkiro1(Posted 2012) [#3]
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.


marksibly(Posted 2012) [#4]
Hi,

Ogg for glfw is coming!


Richard Betson(Posted 2012) [#5]
Ta Da! :D


Shinkiro1(Posted 2012) [#6]
Yes :)


Neuro(Posted 2012) [#7]
Nice :)


Rex Rhino(Posted 2012) [#8]
Thanks Mark! That is super appreciated!


Winter Wolves(Posted 2012) [#9]
Any news on this? would really be cool to have .ogg on GLFW :)


therevills(Posted 2012) [#10]
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



Winter Wolves(Posted 2012) [#11]
ah probably I didn't hear sounds because it doesn't stream yet! thanks


Shinkiro1(Posted 2012) [#12]
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)


Shinkiro1(Posted 2012) [#13]
Bump.
Anyone knows how to do this?


Neuro(Posted 2012) [#14]
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.


Neuro(Posted 2012) [#15]
This issue should be fixed now in the v62 update.


therevills(Posted 2012) [#16]
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.