mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-12 14:42:31 -05:00
lua consolidate pcm_ functions
The way to call the pcm functions has changed
rb.pcm("option", var)
rb.pcm_set_frequency(freq) = becomes rb.pcm("pcmsetfrequency", freq)
added pcm.lua to the includes for conversion to old functions
if your script is broken by this change you simply add
`require("pcm")` to the top for the old functionality
added rb.pcm("calculatepeaks")
Change-Id: I092057b0c0b5575e567862661f122da1ca2680e8
This commit is contained in:
parent
2e1ca20097
commit
74fe5203d0
4 changed files with 108 additions and 2 deletions
|
|
@ -88,6 +88,10 @@ my @forbidden_functions = ('^open$',
|
|||
'^playlist_(amount|add|create|start|resume|shuffle)$',
|
||||
'^playlist_(sync|resume_track|remove_all_tracks)$',
|
||||
'^playlist_(insert_track|insert_directory)$',
|
||||
'^pcm_is_(playing|paused)$',
|
||||
'^pcm_play_(stop|pause|lock|unlock)$',
|
||||
'^pcm_(apply_settings|get_bytes_waiting)$',
|
||||
'^pcm_(set_frequency|calculate_peaks)$',
|
||||
'^round_value_to_list32$');
|
||||
|
||||
my $rocklib = sprintf("%s/rocklib.c", $ARGV[0]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue