Ogg streaming in BMax?

Miscellaneous Forums/General Discussion/Ogg streaming in BMax?

Dunno if this was asked before, however if there're ogg streaming options that we can play as music, should be nice.

In PB I use audiere to play music, and we can use Fmod module in BMax for similar task, but there's no native way to do this currently....

We can reduce the ogg file size and load up it before load a level, however I want to know if there're reasons behind it, like cross platform compatibility or freeaudio limit.

Or just live with it if we don't use external library?

I would like this capability too, but there is no obvious solution at the moment...

If win32 only, utilize Audiere won't be a bad solution, just want to know the full capabilities of built-in libraries, BMax is great, dunno if there'll be any functiona add-ons coming...

Use OpenAL.

OpenAL should be a great solution...dunno why BRL didn't use it (licensing scheme?)

I'm also looking for streaming audio files instead of having to load them up at once.

Does OpenAL need an external lib?

Are there any examples how to set it up with bmx?

*bump*

Looked at it, OpenAL might be able to compiled statically, however OAL itself has no format support as well as we still need to provide a loader(however there should be less letancy problem on 9x)

Have to say the sound aspect of BlitzMax is VERY weak, in comparsion to B3D, if there're basic OGG streaming and XM playing capability, should be pretty enough and doesn't need external libs like Fmod.

My problem is that my maxgui app "hangs" when it starts playing the ogg files. This is no game where I can make a loading screen. So it's "ugly" when the user sees the "lagging" for a simple task as that.

My framework has loading screens simply because oggs take so long to load...

If win32 only, t's not hard to use Audiere and the LGPL is fine, however I wonder how BRL will handle this.

I asked that in the fmod thread but got no reply so far.

Does fmod support streaming? I highly dislike having external dlls but if so, I could get rid of the lag... :/

Hmm... both Fmod and Audiere support streaming

Audiere is here http://audiere.sourceforge.net
as you follow the LGPL rule you can use it commercially without the $100 license like Fmod is.

However you need to use Audiere to handle all sound functions(only if you want it to work correctly under 9x, in 2K/xp it's ok to mix Audiere and BRL.freeaudio)

I just need to play ogg or mp3 files.
Functions "Stop" and "Play", perhaps "loop".

Cross-platform would be nice.
Not having to use a dll would be nice too.

My problem is: I never coded much c.
So I have absolute no idea on how to port such thing over to bmx.

you mean you need ogg.
At least unless you want to pay for mp3 which is needed in most cases (5000 downloads+)

Ok, ogg only (as I currently only use ogg).

(Though I thought playing mp3 would be free, but that's another story.)

yeah only ogg.

I remember skid said he's making a theora module about a year ago, along with more ogg functions, however it's not released/finished?

I don't know much C as well, however I may think this is the issue of freeaudio, the ogg module in BMax is mostly identical to the standard one.....

Technically I don't tend to use 3rd party things, though it's just out of habit, however I hope BMax can be self-contained on these important aspects.