Old thread name: call-out request: PlayOggFile(yes I want to make a music w.)
I know that AF tried to make a music player for Spring as a groupAI but complained about the lack of data avaliable to groupAIs. What he did is a good workaround but not a good solution.
Today I woke up and reallized (really, that's how it happened) that lua has all the necessary call-ins and call-outs to make a perfect music widget. However it's still missing one crucial call-out: PlayOggFile. I prefer the ogg format becouse:
- it's more modern than mp3 (smaller files)
- it has no license issues (I know there are some with mp3 but not sure what)
- it's open source so all you need to do is some copy&pasting (== joke, I know it's not easy and that I'm asking for a lot

API:
PlayOggFile(filename, [volume, x, y, z]) -> soundLength, oggID
StopOgg(oggID, [fadeOutTime]) -> nil
PlaySoundFile can be used as a substitute for PlayOggFile before it's implemented so I can just convert mp3s from AFs musicAI into low-bitrate wavs and start working on the widget right now. All I need is a positive reply that the call-out will be implemented in the next release.
What do you think?
Edit: Btw StopSound(soundID) for the current PlaySoundFile would be useful as well.