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?)
Basic Music Player (love.audio demo)
- Thursdaybloom
- Citizen
- Posts: 81
- Joined: Mon Feb 15, 2010 3:43 am
- Location: Australia
Basic Music Player (love.audio demo)
- Attachments
-
- music.love
- (205.4 KiB) Downloaded 232 times
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: Basic Music Player (love.audio demo)
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!
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!
Who is online
Users browsing this forum: No registered users and 10 guests