Author Topic: FMOD Music?  (Read 5495 times)

0 Members and 1 Guest are viewing this topic.

Offline Hotshot

  • DBF Aficionado
  • ******
  • Posts: 2114
  • Karma: 91
    • View Profile
FMOD Music?
« 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?

Offline zawran

  • Sponsor
  • Pentium
  • *******
  • Posts: 909
  • Karma: 67
    • View Profile
Re: FMOD Music?
« Reply #1 on: December 28, 2009 »
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.

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Re: FMOD Music?
« Reply #2 on: December 28, 2009 »
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.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline Hotshot

  • DBF Aficionado
  • ******
  • Posts: 2114
  • Karma: 91
    • View Profile
Re: FMOD Music?
« Reply #3 on: December 30, 2009 »
Quote
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.

Quote
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  :(

Offline zawran

  • Sponsor
  • Pentium
  • *******
  • Posts: 909
  • Karma: 67
    • View Profile
Re: FMOD Music?
« Reply #4 on: December 30, 2009 »
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.

Offline Hotshot

  • DBF Aficionado
  • ******
  • Posts: 2114
  • Karma: 91
    • View Profile
Re: FMOD Music?
« Reply #5 on: December 30, 2009 »
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 :(
« Last Edit: December 30, 2009 by Hotshot »

Offline zawran

  • Sponsor
  • Pentium
  • *******
  • Posts: 909
  • Karma: 67
    • View Profile
Re: FMOD Music?
« Reply #6 on: December 30, 2009 »
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.
« Last Edit: December 30, 2009 by zawran »

Offline Hotshot

  • DBF Aficionado
  • ******
  • Posts: 2114
  • Karma: 91
    • View Profile
Re: FMOD Music?
« Reply #7 on: December 30, 2009 »
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" ?


Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Re: FMOD Music?
« Reply #8 on: December 31, 2009 »
Do you have the correct bassmod.dll ?
www.un4seen.com
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline Hotshot

  • DBF Aficionado
  • ******
  • Posts: 2114
  • Karma: 91
    • View Profile
Re: FMOD Music?
« Reply #9 on: December 31, 2009 »
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 :)
« Last Edit: December 31, 2009 by Hotshot »