prevSong

Version 1
prevSong - moves to the previosu song in the playlist

Description

Void prevSong ( )

prevSong() reads the current playing song's ID, subtracts one and moves to that song. If the new ID is less than zero (default lowest entry in an array) it moves to the last entry in the array. This can be problematic if you are extending the Mp3Jukebox class and delete any entries from the song array excluding the last. The next release will feature shifting and popping of the array to work around this.



See also: makePlaylist(), pause(), play(), nextSong(), stop()

Home

Public Functions