Page 1 of 1

Basic Music Player (love.audio demo)

Posted: Sat Apr 03, 2010 9:07 am
by Thursdaybloom
I decided to play with and learn more about love.audio and ended up making my first 'project'. This is a very basic music player in its infancy. So far it uses love.audio.newSource and setLooping, as well as love.audio.play, .pause and .stop.

controls:
Left-click on the icons to use them
Left-click and drag the volume slider to change volume
Mousewheel up/down = volume up/down
Space = play (or pause if playing)

I stole the 'awesome.ogg' that plays from whoever posted sea-otter.love


TODO LIST (read: things I might like to try in the future if I can be bothered):
toggle looping on/off
include more than one song and include prev/next song
print artist and song name metadata from the .ogg file playing
load/play a file located outside of music.love (are these last two even possible?)

Re: Basic Music Player (love.audio demo)

Posted: Sat Apr 03, 2010 9:12 am
by bartbes
Metadata isn't exposed by LÖVE, you can manually try to interpret it, or create a feature request.
You can probably load from outside of music.love, but if it somehow fails you can also wait for the exposed FileData class, which allows you to simulate a file from a string.

EDIT: Nice!