Some FModEx questions...

BlitzMax Forums/Brucey's Modules/Some FModEx questions...

Grisu(Posted 2009) [#1]
Hey!

1.
Is there a way to set the Buffersize for a stream?
The function "system.setStreamBufferSize()" doesn't seem to be supported?

2.
a) Is it possible to get the bufferstate (pre-buffer), while a stream is loading?
b) Can you detect the current state of a stream buffer (= detect bufferunderruns)?

3.
Can one read out the exact error codes given by FMOD_RESULT such as:



Any example code would be highly appreciated.

Grisu


Brucey(Posted 2009) [#2]
I've updated SVN...

Updated to latest stable FMOD (4.20.06)
Implemented more TFMODSystem methods.

1) You should be able to now.

2) Not sure... will need to investigate.

3) You can call FMOD_ErrorString:String(result:Int)

:o)


(w00t! Post No. 4000! ... I really need to get out more...)


Grisu(Posted 2009) [#3]
Thanks and congrats to your 4000th post!

Do you also know if it's possible to incbin the fmodex.dll into the release binary?


plash(Posted 2009) [#4]
Do you also know if it's possible to incbin the fmodex.dll into the release binary?
... Sure you could, but you would have to write it to the HD to be able to use it.


Grisu(Posted 2009) [#5]
Too bad one can't link it to the exe directly.

@Brucey:
@#2:
I think this would do, if implemented:

Method
GetOpenState:Int(openState:Int Var, percentBuffered:Int Var, starving:Int Var)
Return FMOD_Sound_GetOpenState(soundPtr, Varptr openState, Varptr percentBuffered, Varptr starving)
End Method


Brucey(Posted 2009) [#6]
It's there... in TFMODSound.


Grisu(Posted 2009) [#7]
yeah, will have a closer look to make it work.

Did you ever manage to play WMA streams?
http://tiscali.project-fx.de/play.wma?radio=rsh

^this one plays fine under winamp and wmp11. Is there a secret or does one need another decoder for this?


Brucey(Posted 2009) [#8]
According to the docs :

To play WMA files on Windows, the user must have the latest Windows media player codecs installed (Windows Media Player 9). The user can download this as an installer (wmfdist.exe) from www.fmod.org download page if they desire or you may wish to redistribute it with your application (this is allowed). This installer does NOT install windows media player, just the necessary WMA codecs needed.