An update.
Now it's possible to use an ogg file from memory / buffer, good for embedding
http://www.harteex.com/files/SimpleSoundVorbis3.zipTo compile, there has to be an ogg file named oggTest.ogg in the res directory, and then you need to run create_resources_sound.bat.
The sound actually sounds quite good now, even thought there is no buffering.
I still haven't got buffering running ok, it sounds like it's slow. It sounds like it's too slow decoding, but I don't think so, it's probably a bug somewhere.
Here is my work in progress. If anyone wants to play around with it and finds something bad with the code, I would love to hear.
http://www.harteex.com/files/SimpleSoundVorbisPlayer.zipEDIT: Found the problemI wrongfully assumed that ogg would always give back the amount of data that was requested.
EDIT 2: While a lot better, still not perfect
EDIT 3: Ok now everything works.
EDIT 4: See
http://boards.dingoonity.org/dingoo-releases/gooplayer-(ogg-music-player)/