OLD | NEW |
AUDIO | |
rb.audio_status | rb.audio("status") |
| rb.audio("play",) |
rb.audio_stop | rb.audio("stop") |
rb.audio_pause | rb.audio("pause") |
rb.audio_resume | rb.audio("resume") |
rb.audio_next | rb.audio("next") |
rb.audio_prev | rb.audio("prev") |
rb.audio_ff_rewind | rb.audio("ff_rewind",) |
rb.audio_flush_and_reload_tracks | rb.audio("flush_and_reload_tracks") |
rb.audio_get_file_pos | rb.audio("get_file_pos") |
PLAYLIST | |
rb.playlist_amount | rb.playlist("amount") |
rb.playlist_add | rb.playlist("add",) |
rb.playlist_create | rb.playlist("create",) |
rb.playlist_start | rb.playlist("start",) |
rb.playlist_resume_track | rb.playlist("resume_track",) |
rb.playlist_resume | rb.playlist("resume") |
rb.playlist_shuffle | rb.playlist("shuffle",) |
rb.playlist_sync | rb.playlist("sync") |
rb.playlist_remove_all_tracks | rb.playlist("remove_all_tracks") |
rb.playlist_insert_track | rb.playlist("insert_track",) |
rb.playlist_insert_directory | rb.playlist("insert_directory",) |
You can also add require("audio") and or require("playlist")
to the top of your script to get the old functionality.
The playlist include also includes playlist_tracks(dir, filename)
which will allow you to dump an existing playlist into a lua table