Page 1 of 1

ILoveMP3s - A minimalist MP3 player

Posted: Fri Nov 28, 2014 8:13 pm
by iggyvolz
I was going over music for my game and decided to take a break from it and play with the audio API... and this happened.

A very minimal MP3 player which I coded in just about an hour (which included me downloading an entire soundtrack for the player).

ILoveMP3s plays all sounds in the assets folder in alphabetical order, so I would recommend appending all song names with the song number like so: 01 - [Song Name].mp3.

A total of 64 lines of code and licensed under the MIT License. You can just add songs into the assets folder and package like any Löve game, and you've got a working MP3 player, with pause/play (space bar) and next/last song selection (left/right).

My first finished löve project, I hope people like it!

https://github.com/iggyvolz/ILoveMP3s

Re: ILoveMP3s - A minimalist MP3 player

Posted: Fri Nov 28, 2014 9:28 pm
by josefnpat
Cute little project!

I've offered a pull request for more aggressive checking, and perhaps a few more changes you may like!

Re: ILoveMP3s - A minimalist MP3 player

Posted: Fri Nov 28, 2014 9:33 pm
by drunken_thor
You should use LoveFrames and add a ui to this, then use LoveFS viewtopic.php?f=5&t=9479 to make the ui load the music files.

Seems like a good start to a project!

Re: ILoveMP3s - A minimalist MP3 player

Posted: Fri Dec 05, 2014 1:47 pm
by Murii
I have this site : http://pub1.diforfree.org:8000/di_electrohouse_hi where i lisen all my favorite songs.Could you try implementing a function where you put a link and play the music from?

Re: ILoveMP3s - A minimalist MP3 player

Posted: Sat Dec 06, 2014 5:49 pm
by iggyvolz
Murii wrote:*snip*
I don't understand what you mean... that link you gave leads to a 404 for me.
If you mean inputting a link to an MP3 file... that would be interesting. I'll look into it after Ludum Dare.

Re: ILoveMP3s - A minimalist MP3 player

Posted: Sat Dec 06, 2014 7:01 pm
by Murii
iggyvolz wrote:
Murii wrote:*snip*
I don't understand what you mean... that link you gave leads to a 404 for me.
If you mean inputting a link to an MP3 file... that would be interesting. I'll look into it after Ludum Dare.
Sometimes the site is not working.But yeah,you got the idea,put a link to a .mp3 file and play it from web!