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
ILoveMP3s - A minimalist MP3 player
- josefnpat
- Inner party member
- Posts: 955
- Joined: Wed Oct 05, 2011 1:36 am
- Location: your basement
- Contact:
Re: ILoveMP3s - A minimalist MP3 player
Cute little project!
I've offered a pull request for more aggressive checking, and perhaps a few more changes you may like!
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
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
- drunken_thor
- Citizen
- Posts: 75
- Joined: Wed Oct 01, 2014 12:14 am
- Location: Toronto, Canada
- Contact:
Re: ILoveMP3s - A minimalist MP3 player
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!
Seems like a good start to a project!
Re: ILoveMP3s - A minimalist MP3 player
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?
Twitter: https://twitter.com/Murii5
Re: ILoveMP3s - A minimalist MP3 player
I don't understand what you mean... that link you gave leads to a 404 for me.Murii wrote:*snip*
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
Sometimes the site is not working.But yeah,you got the idea,put a link to a .mp3 file and play it from web!iggyvolz wrote:I don't understand what you mean... that link you gave leads to a 404 for me.Murii wrote:*snip*
If you mean inputting a link to an MP3 file... that would be interesting. I'll look into it after Ludum Dare.
Twitter: https://twitter.com/Murii5
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 3 guests