Rockbox Technical Forums

Support and General Use => Plugins/Viewers => Topic started by: Bilgus on October 30, 2018, 02:25:35 PM

Title: Lua Script breaking changes to rb.pcm_ functions
Post by: Bilgus on October 30, 2018, 02:25:35 PM
PCM
OLDNEW
rb.pcm_apply_settingsrb.pcm("apply_settings")
rb.pcm("calculate_peaks")
rb.pcm_play_stoprb.pcm("play_stop")
rb.pcm_play_pauserb.pcm("play_pause", )
rb.pcm_play_lockrb.pcm("play_lock")
rb.pcm_play_unlockrb.pcm("play_unlock")
rb.pcm_is_playingrb.pcm("is_playing")
rb.pcm_is_pausedrb.pcm("is_paused",)
rb.pcm_get_bytes_waitingrb.pcm("get_bytes_waiting")
rb.pcm_set_frequencyrb.pcm("set_frequency", )

You can also add  require("pcm")
to the top of your script to get the old functionality.