Problem with FMOD-Library

Linux specific forum
Lebostein
Addict
Addict
Posts: 833
Joined: Fri Jun 11, 2004 7:07 am

Problem with FMOD-Library

Post by Lebostein »

Hi,

please download the FMOD-API for Linux: http://www.fmod.org/files/fmodapi3741linux.tar.gz
and extract the FMOD library libfmod-3.74.1.so and try:

Code: Select all

Debug OpenLibrary(#PB_Any, "libfmod-3.74.1.so") 
Do you see 0 or a big number? When big number, then try this code and copy the debug output:

Code: Select all

TS_Sound_LIB = OpenLibrary(#PB_Any, "libfmod-3.74.1.so")

If TS_Sound_LIB

Debug TS_Sound_LIB
Debug IsFunction(TS_Sound_LIB, "FSOUND_Init")
Debug IsFunction(TS_Sound_LIB, "FSOUND_Sample_Load")
Debug IsFunction(TS_Sound_LIB, "FSOUND_SetVolume")
Debug IsFunction(TS_Sound_LIB, "FSOUND_SetReserved")
Debug IsFunction(TS_Sound_LIB, "FSOUND_Sample_SetMode")
Debug IsFunction(TS_Sound_LIB, "FSOUND_Sample_Get")
Debug IsFunction(TS_Sound_LIB, "FSOUND_PlaySound")
Debug IsFunction(TS_Sound_LIB, "FSOUND_StopSound")
Debug IsFunction(TS_Sound_LIB, "FSOUND_Sample_Free")
Debug IsFunction(TS_Sound_LIB, "FMUSIC_LoadSongEx")
Debug IsFunction(TS_Sound_LIB, "FMUSIC_LoadSong")
Debug IsFunction(TS_Sound_LIB, "FMUSIC_SetMasterVolume")
Debug IsFunction(TS_Sound_LIB, "FMUSIC_SetLooping")
Debug IsFunction(TS_Sound_LIB, "FMUSIC_PlaySong")
Debug IsFunction(TS_Sound_LIB, "FMUSIC_IsPlaying")
Debug IsFunction(TS_Sound_LIB, "FMUSIC_StopSong")
Debug IsFunction(TS_Sound_LIB, "FMUSIC_StopAllSongs")
Debug IsFunction(TS_Sound_LIB, "FMUSIC_FreeSong")
Debug IsFunction(TS_Sound_LIB, "FSOUND_Close")

CloseLibrary(TS_Sound_LIB)

EndIf
Thank you!!!
Lebostein
Addict
Addict
Posts: 833
Joined: Fri Jun 11, 2004 7:07 am

Post by Lebostein »

No feedback? :cry:
walker
Enthusiast
Enthusiast
Posts: 634
Joined: Wed May 05, 2004 4:04 pm
Location: Germany

Post by walker »

Hi,

for me all works fine... but you have to use the path like "/home/yxz/libfmod-3.74.1.so" instead of "libfmod-3.74.1.so" to get the lib working....

Ulf
Post Reply