unable to load DLL 'fmod.dll'

WildmanNot

New Member
Licensed User
:sign0104:Trying to write a simple program to see what I can get. I keep getting this error.

An error occurred on sub main.app_start.
Line number:9
fm.Play("http://liveshow.keithandthegirl.com:8004/listen.pls")
Error description: Unable to load DLL 'fmod.dll': The specified module could not be found.

Both FMODDesktop.dll and FMODDevice.dll are in the folder. What am I doing wrong? :BangHead:

B4X:
Sub Globals
   'Declare the global variables here.

End Sub

Sub App_Start

   fm.New1
   fm.Play("http://liveshow.keithandthegirl.com:8004/listen.pls")
End Sub

Any ideas?

Thanks
 

WildmanNot

New Member
Licensed User
Streaming using FMOD

This works on the desktop but not on my device. It ends when you close the message box. Right now I just want to get the streaming to work and then I'll work on the rest.

On the desktop the message box is 2147483647 but on the device is 0.

I have FMODDevice.dll and FMODCE.dll residing in the same folder.

B4X:
Sub App_Start

   fm.New1
   fm.Play("http://liveshow.keithandthegirl.com:8004")
   
   'fm.Play("http://stream5.jungletrain.net:8000")
   
   Msgbox (fm.Length1)

End Sub

Any ideas?
 

agraham

Expert
Licensed User
Longtime User
It ends when you close the message box.
As you have not shown a Form your application terminates when it runs off the end of App_Start. The OS then cleans up after it and terminates anything (well, most anything!) started by the application. This may behave differently in the IDE to when compiled as the OS may perceive things started by your app as belonging to the IDE, which has of course not itself terminated.

As Mike says behaviour in the device environment does not necessarily always match that on the desktop.
 

WildmanNot

New Member
Licensed User
Thanks for the responses.

Is there anyway to stream music from the internet? That was the main reason for me to purchase Basic4PPC.:sign0085:
 

mjcoon

Well-Known Member
Licensed User
Is there anyway to stream music from the internet?

This is not something I want to do myself. But I have TCPMP installed and if I put a URL from your code into P-IE and click the "Listen" link that appears then TCPMP is invoked and plays the item...

Mike.
 
Top