Basic Music Player (love.audio demo)

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
User avatar
Thursdaybloom
Citizen
Posts: 81
Joined: Mon Feb 15, 2010 3:43 am
Location: Australia

Basic Music Player (love.audio demo)

Post 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?)
Attachments
music.love
(205.4 KiB) Downloaded 216 times
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Basic Music Player (love.audio demo)

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

Who is online

Users browsing this forum: Semrush [Bot] and 67 guests