ILoveMP3s - A minimalist MP3 player

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
iggyvolz
Prole
Posts: 14
Joined: Sun Nov 23, 2014 11:11 pm

ILoveMP3s - A minimalist MP3 player

Post 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
User avatar
josefnpat
Inner party member
Posts: 955
Joined: Wed Oct 05, 2011 1:36 am
Location: your basement
Contact:

Re: ILoveMP3s - A minimalist MP3 player

Post by josefnpat »

Cute little project!

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

FORCIBLY IGNORED.
<leafo> when in doubt delete all of your code
<bartbes> git rm -r *
<bartbes> git commit -m "Fixed all bugs"
<bartbes> git push
User avatar
drunken_thor
Citizen
Posts: 75
Joined: Wed Oct 01, 2014 12:14 am
Location: Toronto, Canada
Contact:

Re: ILoveMP3s - A minimalist MP3 player

Post 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!
Light_world.lua for all your lighting needs
Talkies for all dialog needs
Github
twitter
User avatar
Murii
Party member
Posts: 216
Joined: Fri Jul 05, 2013 9:58 am
Location: Arad, Romania
Contact:

Re: ILoveMP3s - A minimalist MP3 player

Post 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?
iggyvolz
Prole
Posts: 14
Joined: Sun Nov 23, 2014 11:11 pm

Re: ILoveMP3s - A minimalist MP3 player

Post 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.
User avatar
Murii
Party member
Posts: 216
Joined: Fri Jul 05, 2013 9:58 am
Location: Arad, Romania
Contact:

Re: ILoveMP3s - A minimalist MP3 player

Post 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!
Post Reply

Who is online

Users browsing this forum: No registered users and 154 guests