Very Simple MP3 Player DLL

Use of external libraries (DLLs) from ZGE.

Moderator: Moderators

StevenM
Posts: 149
Joined: Thu Jan 20, 2011 10:03 am

Very Simple MP3 Player DLL

Postby StevenM » Sun May 12, 2013 12:23 am

PlayMPEG32.DLL loads and plays an mp3.

Download here:
http://www.freewebz.com/lb-connection/lb3.htm

The dll was created by Brad Moore and made for liberty basic, but works with ZGE as well.

Though it is limited - it's very easy to use with one function:


ExternalLibrary Stdcall:

Code: Select all

int PlayMPEG (string Filename){}


OnLoaded :

Code: Select all

string f="AnyMP3File.mp3";
PlayMPEG(f);



More importantly - it runs in a background thread.
License Details are included in the zip file.


Note: There is no need to NULL terminate strings in ZGE.

I did not test file paths with spaces yet. If you have an issue.
try putting the filename in quotes.

"\""+File+"\"" or
chr(34)+File+ chr(34)

User avatar
Kjell
Posts: 1613
Joined: Sat Feb 23, 2008 11:15 pm

Postby Kjell » Sun May 12, 2013 2:00 am

Hi Steven,

You don't need a ( additional ) DLL to play mp3 files though .. simply use the standard playback features of your OS. Try this super-simple example for Windows :wink:

K

StevenM
Posts: 149
Joined: Thu Jan 20, 2011 10:03 am

Postby StevenM » Sun May 12, 2013 4:21 am

Wow, it is easy. All the examples I found were using filename+" type mpegvideo alias..." and a 0 for "null". I couldn't get it to work in zge.

ultimatejew
Posts: 2
Joined: Mon Feb 12, 2018 9:33 pm

Re:

Postby ultimatejew » Mon Feb 12, 2018 9:34 pm

Kjell wrote:Hi Steven,

You don't need a ( additional ) DLL to play mp3 files though .. simply use the standard playback features of your OS. Try this super-simple example for Windows :wink:



Could I have this reuploaded or re- explained?

User avatar
Kjell
Posts: 1613
Joined: Sat Feb 23, 2008 11:15 pm

Re: Very Simple MP3 Player DLL

Postby Kjell » Tue Feb 13, 2018 11:25 am

Hi,

The file is still there .. but Dropbox changed the way public files / links work in 2017. Anyway, here the new link :)

K

ultimatejew
Posts: 2
Joined: Mon Feb 12, 2018 9:33 pm

Re: Very Simple MP3 Player DLL

Postby ultimatejew » Wed Feb 14, 2018 12:10 am

Kjell wrote:Hi,

The file is still there .. but Dropbox changed the way public files / links work in 2017. Anyway, here the new link :)

K



Thank you very much <3


Return to “Extensions”

Who is online

Users browsing this forum: No registered users and 1 guest