Dark Bit Factory & Gravity
PROGRAMMING => Other languages => Blitz => Topic started by: Hotshot on December 27, 2009
-
I been looking for FMOD music library for blitzmax and the only things I have found are
Brucey FMOD library(but i dont know which one is)? or REDi's MaxMod2(even thought they have no source code!)?
are any FMOD Library for blitzmax apart from 2 library from above?
-
I do not remember any other than those two. So you are either stuck with those, or you will have to make your own wrapper. You might take a look at the BASS dll. There are a couple of wrappers for that as well, just in case you cannot figure out how to use the FMOD. It will play those oldschool modules as well as mp3. I am fairly certain, that there is a wrapper for that in the code archieves section of the blitzmax site.
-
Alan MacDonald did one for BassMod, it was done with an early BlitzMax version.
I dont have or know his web address or if the page is still up anymore either.
-
I do not remember any other than those two. So you are either stuck with those, or you will have to make your own wrapper. You might take a look at the BASS dll. There are a couple of wrappers for that as well, just in case you cannot figure out how to use the FMOD. It will play those oldschool modules as well as mp3. I am fairly certain, that there is a wrapper for that in the code archieves section of the blitzmax site.
Make my own wrapper? I havnt got a clue on how to do it. So what sound or music files that Blitzmax can do? I do know they can do ogg and mp 3 but what else?
There only 2 wrapper for blitzmax for music files such as fmod.
Alan MacDonald did one for BassMod, it was done with an early BlitzMax version.
I dont have or know his web address or if the page is still up anymore either.
oh bummer :(
-
I found the BASS wrapper module from Alan, and I have attached it to this post. I am fairly certain that Alan would not mind you using it.
-
thank you zawran
I have press build module and i get this
Building Modules
Compiling:bass.bmx
flat assembler version 1.68 (1484537 kilobytes memory)
4 passes, 44700 bytes.
Archiving:bass.debug.win32.x86.a
ar: creating C:/Program Files/BlitzMax/mod/aln.mod/bass.mod/bass.debug.win32.x86.a
Compiling:freeaudio.cpp
Build Error: failed to compile C:/Program Files/BlitzMax/mod/pub.mod/freeaudio.mod/freeaudio.cpp
Process complete
I going to read the alan doc :)
there is no doc or even tutorial source code :(
-
I am currently using blitzmax v1.33, and it seems to be compiling fine here. Try the test I have attached. It has some short test code, a module and an exe that I compiled and upx packed.
[edit] It might have to do with you not using Framework and Import commands. And his module not working along with blitzmax own freeaudio code. I always use the Framework and Import commands as this allows you to keep the final exe file low in size, and it ensures that you do not include code you do not need.
-
it is working but no sound...
here what I did...i Build the module then run the program and i get this
Building moduletest
Compiling:moduletest.bmx
flat assembler version 1.67.36 (1405901 kilobytes memory)
3 passes, 1603 bytes.
Linking:moduletest.exe
Executing:moduletest.exe
Attempt to call uninitialized function pointer
Process complete
there is one things that keep bugging me.....what is "Attempt to call uninitialized function pointer" ?
-
Do you have the correct bassmod.dll ?
www.un4seen.com
-
Thank you and i got the sound working YAY....
I still got one problem to sort out and i will post the code in [BLITZMAX] Shadow of the Beast topic.
cheers :)