<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rockbox/apps/plugins/lua/rocklib.c, branch wolf3d</title>
<subtitle>My Rockbox tree</subtitle>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/'/>
<entry>
<title>Lua add read/write access to global_status, global_settings, audio_current_track</title>
<updated>2018-12-16T19:33:18+00:00</updated>
<author>
<name>William Wilgus</name>
<email>me.theuser@yahoo.com</email>
</author>
<published>2018-12-15T19:50:00+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=9d66b5459ecb9f85ffb194194abca5d46535774f'/>
<id>9d66b5459ecb9f85ffb194194abca5d46535774f</id>
<content type='text'>
moved items to rb.system
added read access to audio_current_track and audio_next_track

Change-Id: Ia055b8cb3848e540067818f596ffd1058da057fb
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
moved items to rb.system
added read access to audio_current_track and audio_next_track

Change-Id: Ia055b8cb3848e540067818f596ffd1058da057fb
</pre>
</div>
</content>
</entry>
<entry>
<title>lua add LCD_DEFAULT_FG, fix 2-bit screen fg/bg inversion</title>
<updated>2018-11-24T21:40:23+00:00</updated>
<author>
<name>William Wilgus</name>
<email>me.theuser@yahoo.com</email>
</author>
<published>2018-11-24T21:40:23+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=9ed486bdc747b505a5b7b868c363dcff3e718a0d'/>
<id>9ed486bdc747b505a5b7b868c363dcff3e718a0d</id>
<content type='text'>
Change-Id: Ibe2bc6602ff27524a3b96d9523780acbfbf03c76
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: Ibe2bc6602ff27524a3b96d9523780acbfbf03c76
</pre>
</div>
</content>
</entry>
<entry>
<title>Lua optimize combine and rework similar functions</title>
<updated>2018-11-02T17:00:06+00:00</updated>
<author>
<name>William Wilgus</name>
<email>me.theuser@yahoo.com</email>
</author>
<published>2018-11-01T18:20:33+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=f6e10b84882387e304467f22ea2f6126cbaa1264'/>
<id>f6e10b84882387e304467f22ea2f6126cbaa1264</id>
<content type='text'>
rb.strncasecmp
    strcasecmp just exclude count -&gt; rb.strncasecmp(s1, s2)

rb.backlight_brightness_set
    backlight_set_brightness -- redundant
    rb.backlight_brightness_use_setting -&gt; rb.backlight_brightness_set()

rb.buttonlight_brightness_set
    buttonlight_set_brightness -- redundant
    rb.buttonlight_brightness_use_setting -&gt; rb.buttonlight_brightness_set()

rb.mixer_frequency
    rb.mixer_set_frequency -&gt; mixer_frequency(freq)
    rb.mixer_get_frequency -&gt; mixer_frequency

rb.backlight_onoff
    rb.backlight_on  -&gt; rb.backlight_onoff(true)
    rb.backlight_off -&gt; rb.backlight_onoff(false)

rb.touchscreen_mode
    rb.touchscreen_set_mode -&gt; rb.touchscreen_mode(mode)
    rb.touchscreen_get_mode -&gt; rb.touchscreen_mode()

rb.schedule_cpu_boost
    rb.trigger_cpu_boost -&gt; rb.schedule_cpu_boost(true)
    rb.cancel_cpu_boost -&gt; rb.schedule_cpu_boost(false)

Includes rbcompat.lua for backwards compatibility
if your script is broken by this change you simply add
`require("rbcompat")` to the top for the old functionality

Change-Id: Ibffd79a0d9be6d7d6a65cc4af5c0a1c6a0f3f94d
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
rb.strncasecmp
    strcasecmp just exclude count -&gt; rb.strncasecmp(s1, s2)

rb.backlight_brightness_set
    backlight_set_brightness -- redundant
    rb.backlight_brightness_use_setting -&gt; rb.backlight_brightness_set()

rb.buttonlight_brightness_set
    buttonlight_set_brightness -- redundant
    rb.buttonlight_brightness_use_setting -&gt; rb.buttonlight_brightness_set()

rb.mixer_frequency
    rb.mixer_set_frequency -&gt; mixer_frequency(freq)
    rb.mixer_get_frequency -&gt; mixer_frequency

rb.backlight_onoff
    rb.backlight_on  -&gt; rb.backlight_onoff(true)
    rb.backlight_off -&gt; rb.backlight_onoff(false)

rb.touchscreen_mode
    rb.touchscreen_set_mode -&gt; rb.touchscreen_mode(mode)
    rb.touchscreen_get_mode -&gt; rb.touchscreen_mode()

rb.schedule_cpu_boost
    rb.trigger_cpu_boost -&gt; rb.schedule_cpu_boost(true)
    rb.cancel_cpu_boost -&gt; rb.schedule_cpu_boost(false)

Includes rbcompat.lua for backwards compatibility
if your script is broken by this change you simply add
`require("rbcompat")` to the top for the old functionality

Change-Id: Ibffd79a0d9be6d7d6a65cc4af5c0a1c6a0f3f94d
</pre>
</div>
</content>
</entry>
<entry>
<title>Lua fix dir string constants and pcm_play_pause &amp; pcm_set_frequency</title>
<updated>2018-11-01T22:18:46+00:00</updated>
<author>
<name>William Wilgus</name>
<email>me.theuser@yahoo.com</email>
</author>
<published>2018-11-01T22:18:46+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=9b385f37efde877b77be2e0c1822a52b495ad4e6'/>
<id>9b385f37efde877b77be2e0c1822a52b495ad4e6</id>
<content type='text'>
String constants were already expanded in the first macro
pcm functions were looking for stack position #1 when they needed stack pos #2

Change-Id: I7b4fb90953ab2395b77cbd550fdd257fafca6aae
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
String constants were already expanded in the first macro
pcm functions were looking for stack position #1 when they needed stack pos #2

Change-Id: I7b4fb90953ab2395b77cbd550fdd257fafca6aae
</pre>
</div>
</content>
</entry>
<entry>
<title>Lua Fix utf8encode, remove utf16 functions</title>
<updated>2018-11-01T15:34:02+00:00</updated>
<author>
<name>William Wilgus</name>
<email>me.theuser@yahoo.com</email>
</author>
<published>2018-10-31T02:40:23+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=be7a58c33155e0f72ad7b1fb23cf931d085e12cb'/>
<id>be7a58c33155e0f72ad7b1fb23cf931d085e12cb</id>
<content type='text'>
The auto generated utf8/16 encode/decode functions did not work.
Upon implementing them correctly I found that lua handles the utf-8
form properly but I could not get utf-16 to work without crashing
maybe someone can come along later and implement utf-16 safe string
functions but for now utf-16 is removed.

Change-Id: I97a044e200dc27f683a45487cd93fce667c670c4
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The auto generated utf8/16 encode/decode functions did not work.
Upon implementing them correctly I found that lua handles the utf-8
form properly but I could not get utf-16 to work without crashing
maybe someone can come along later and implement utf-16 safe string
functions but for now utf-16 is removed.

Change-Id: I97a044e200dc27f683a45487cd93fce667c670c4
</pre>
</div>
</content>
</entry>
<entry>
<title>Lua Add underscores in audio, pcm, playlist functions</title>
<updated>2018-10-31T13:23:00+00:00</updated>
<author>
<name>William Wilgus</name>
<email>me.theuser@yahoo.com</email>
</author>
<published>2018-10-31T13:23:00+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=bbfe4778114c76e23e9c391225da2d6f74812735'/>
<id>bbfe4778114c76e23e9c391225da2d6f74812735</id>
<content type='text'>
Lessen confusion for end users looking for the underlying function names in
plugin.h

Change-Id: I6662dc7bd9f22d83af372b3d3c5af53d9a1eac9a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Lessen confusion for end users looking for the underlying function names in
plugin.h

Change-Id: I6662dc7bd9f22d83af372b3d3c5af53d9a1eac9a
</pre>
</div>
</content>
</entry>
<entry>
<title>lua consolidate pcm_ functions</title>
<updated>2018-10-30T18:16:01+00:00</updated>
<author>
<name>William Wilgus</name>
<email>me.theuser@yahoo.com</email>
</author>
<published>2018-10-30T17:56:36+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=74fe5203d06aee3ad3498fa9164762cfa1efa3d5'/>
<id>74fe5203d06aee3ad3498fa9164762cfa1efa3d5</id>
<content type='text'>
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
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
</pre>
</div>
</content>
</entry>
<entry>
<title>Lua expand multiple screen support</title>
<updated>2018-10-30T03:16:23+00:00</updated>
<author>
<name>William Wilgus</name>
<email>me.theuser@yahoo.com</email>
</author>
<published>2018-10-27T10:24:27+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=df8233e4abbd0d626158abc5388957cc28b06c50'/>
<id>df8233e4abbd0d626158abc5388957cc28b06c50</id>
<content type='text'>
Some of the lcd functions had support for multiple screens but this wasn't
very safe since the screen number wasn't bounded within the screens[] array
This adds support for all the lcd functions along with checking that screen#
is bounded properly, adds around 600 bytes to devices with a remote screen
devices without a remote screen lock to SCREEN_MAIN

Change-Id: I618bbc7b3919c7b0ff375fb2d71949d7cab43c87
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Some of the lcd functions had support for multiple screens but this wasn't
very safe since the screen number wasn't bounded within the screens[] array
This adds support for all the lcd functions along with checking that screen#
is bounded properly, adds around 600 bytes to devices with a remote screen
devices without a remote screen lock to SCREEN_MAIN

Change-Id: I618bbc7b3919c7b0ff375fb2d71949d7cab43c87
</pre>
</div>
</content>
</entry>
<entry>
<title>Lua Fix kbd_input</title>
<updated>2018-10-25T10:30:58+00:00</updated>
<author>
<name>William Wilgus</name>
<email>me.theuser@yahoo.com</email>
</author>
<published>2018-10-25T10:28:23+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=55533c4d36748d30a1ab5d49c35abae19077c7fe'/>
<id>55533c4d36748d30a1ab5d49c35abae19077c7fe</id>
<content type='text'>
While luaL_addstring() works perfectly fine for the
final buffer once Lual_pushresult() is called
kbd_input doesn't display a previous input properly
since the buffer hasn't been finalized yet

Change-Id: Ic50acaa8b7b17077dec8750dd2b6382624e8a549
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
While luaL_addstring() works perfectly fine for the
final buffer once Lual_pushresult() is called
kbd_input doesn't display a previous input properly
since the buffer hasn't been finalized yet

Change-Id: Ic50acaa8b7b17077dec8750dd2b6382624e8a549
</pre>
</div>
</content>
</entry>
<entry>
<title>Lua cleanup kbd_input, gui_syncyesno_run, do_menu</title>
<updated>2018-10-25T10:06:10+00:00</updated>
<author>
<name>William Wilgus</name>
<email>me.theuser@yahoo.com</email>
</author>
<published>2018-10-23T05:57:41+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=b5786ded6482b5b5955b96bf61b410f012a8509a'/>
<id>b5786ded6482b5b5955b96bf61b410f012a8509a</id>
<content type='text'>
Removes unneeded functions from kbd_input
Consolidates message filling function for gui_syncyesno_run &amp; do_menu

Change-Id: If3c3cea3cbf37a8dc52983c0db174de6d54b35f8
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Removes unneeded functions from kbd_input
Consolidates message filling function for gui_syncyesno_run &amp; do_menu

Change-Id: If3c3cea3cbf37a8dc52983c0db174de6d54b35f8
</pre>
</div>
</content>
</entry>
</feed>
