JukeBox Free - A Music System for Unity

Playing music from a playlist type set up made easy. This system allows you to skip forward and backwards through songs and to randomly play songs from the list. It is fairly easy to set up and supports displaying of song titles and so forth.

Version: 1.0
Source Code: C#
Unity Version: 3.4.1 Free
Price: Free
Asset Store: http://u3d.as/content/corrupted-smile-studio/jukebox-free/2B2
Issue Tracker - For bugs and feature requests

Features:

  • Works with Unity free
  • Can play random songs
  • Can skip forward and backwards
  • Allows a delegate to be called on song change that will display a formatted string of the Artist - Title.
  • Supports volume changes.
  • Automatically plays the next song once a song ends.


Inspector

Regards,
Garth (Corrupted Smile Studio)

Very interested in being able to take this script for a whirl, can’t wait to see it on the Asset Store!

Thanks for your interest. I’m hoping it will be available tomorrow, we’ll have to wait and see.

Regards,
Garth

JukeBox - Free has been approved and is available from Unity’s asset store:
http://u3d.as/content/corrupted-smile-studio/jukebox-free/2B2
Have fun.

Regards,
Garth

The free version of JukeBox has gotten a fair (for me) amount of interest and downloads. I have since decided to work on a pro version that will be available for super cheap and will as of this moment support loading .ogg/.mp3 (depending on the platform) from a folder on the user’s device. This will allow you to have user music within your game.

I looked into offering a realtime mp3 to ogg converter in order to allow users to place mp3’s within the folder. However, this isn’t fast enough for any kind of realtime offering. I have since thought of including a console app that can be included with your Unity program that you or the end user will run to convert the mp3s in the folder to ogg while retaining the mp3s.

If you have any other suggestions for the pro or free version, feel free to add them.

Regards,
Garth

The pro version of JukeBox is now available on the Asset Store, JukeBox | Tools | Unity Asset Store for $10.

I was just wondering if those of you who have downloaded and tried this system could write a review for the Asset Store if you have time.

Regards,
Garth

Might be useful for a GTA style system that plays music from radio stations, but haven’t tried it.

It could be used for that. But perhaps it is more suited for a Need For Speed/Sports games and so forth, where there is just a random playlist of music. The pro version is a step towards a GTA style radio system. However, not quite there yet.

hi i got it set up to play music but what do i need to do to show some sort of display and i might upgrade to jukebox pro does that have a slider etc like media player/itunes etc so players can scroll skip etc? also im planning on having them as like radios/cd players (eg metal radio contains 10 songs player can hear but they swap to techno etc by equip a new player) so i need some sort of interface is there anyway of getting interface on ether basic/pro?

Currently it doesn’t support seeking through individual AudioClips but that is on the todo list. Currently the system is set up to allow only one instance of the Jukebox. However, if you rip out most of that code it would be possible to have more than one instance of the jukebox in a scene at a time, then allowing you to disable certain ones while a single one is being used.

If you take a look at SongDisplay, it sets up a callback that enables the song title to be displayed at the bottom of the screen. That can be used as a start into building a music player. JukeBox has public methods for skipping forward/backwards, stopping and playing. So you could add those to a GUI though buttons.

The pro version uses an event based system which is similar to the callback system.

The current todo list for the pro version is:

  • Allow multiple instances of JukeBox, but only one active
  • Allow seeking through songs
  • Allow multiple playlists
  • Make a Player that shows off the capability of the new features and old.
  • Enable pausing of songs.

The free version will be updated with the new event system, pausing and multiple instances of JukeBox. These will be done once the pro version has been updated,

I started putting together a music player type setup. This includes seeking, volume changes skipping, pausing, stopping.

826996--30811--$MusicPlayer.PNG

Once the current Pro update and price cut has been approved on the Asset Store I will finish this version and upload it.

looks great once i will probably get the pro one since ill need multiple and the music player setup and do you think you can make a small button to toggle the visibility of the player like a minimize button

It should be fairly simple to add a minimise button. I’ll take a look into the multiple play-lists soon.

ok thanks and keep up the good work :slight_smile:

Just doing my best to provide a quality product to you guys. Thank you. :slight_smile:

Worked on multiple playlists, the inspector looks slightly bloated now though.

http://forum.unity3d.com/threads/120927-JukeBox-Pro-Music-System-for-Unity?p=831777&viewfull=1#post831777

Pro update incoming

Amazing work! Really like this asset!