diff options
Diffstat (limited to 'apps/plugins/lua')
-rw-r--r-- | apps/plugins/lua/rocklib.c | 4 | ||||
-rw-r--r-- | apps/plugins/lua/rocklib.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/lua/rocklib.c b/apps/plugins/lua/rocklib.c index ed625ca369..44eb549dae 100644 --- a/apps/plugins/lua/rocklib.c +++ b/apps/plugins/lua/rocklib.c | |||
@@ -363,7 +363,7 @@ RB_WRAP(pcm) | |||
363 | lua_pushboolean(L, b_result); | 363 | lua_pushboolean(L, b_result); |
364 | break; | 364 | break; |
365 | case PCM_PLAYPAUSE: | 365 | case PCM_PLAYPAUSE: |
366 | rb->pcm_play_pause(luaL_checkboolean(L, 1)); | 366 | rb->pcm_play_pause(luaL_checkboolean(L, 2)); |
367 | break; | 367 | break; |
368 | case PCM_PLAYSTOP: | 368 | case PCM_PLAYSTOP: |
369 | rb->pcm_play_stop(); | 369 | rb->pcm_play_stop(); |
@@ -380,7 +380,7 @@ RB_WRAP(pcm) | |||
380 | lua_pushinteger(L, right); | 380 | lua_pushinteger(L, right); |
381 | return 2; | 381 | return 2; |
382 | case PCM_SETFREQUENCY: | 382 | case PCM_SETFREQUENCY: |
383 | rb->pcm_set_frequency((unsigned int) luaL_checkint(L, 1)); | 383 | rb->pcm_set_frequency((unsigned int) luaL_checkint(L, 2)); |
384 | break; | 384 | break; |
385 | case PCM_GETBYTESWAITING: | 385 | case PCM_GETBYTESWAITING: |
386 | byteswait = rb->pcm_get_bytes_waiting(); | 386 | byteswait = rb->pcm_get_bytes_waiting(); |
diff --git a/apps/plugins/lua/rocklib.h b/apps/plugins/lua/rocklib.h index 4714dec36d..c8d1366ba6 100644 --- a/apps/plugins/lua/rocklib.h +++ b/apps/plugins/lua/rocklib.h | |||
@@ -33,7 +33,7 @@ | |||
33 | #endif | 33 | #endif |
34 | 34 | ||
35 | #define RB_CONSTANT(x) {#x, x} | 35 | #define RB_CONSTANT(x) {#x, x} |
36 | #define RB_STRING_CONSTANT(x) RB_CONSTANT(x) | 36 | #define RB_STRING_CONSTANT(x) {#x, x} |
37 | 37 | ||
38 | struct lua_int_reg { | 38 | struct lua_int_reg { |
39 | char const* name; | 39 | char const* name; |