summaryrefslogtreecommitdiff
path: root/apps/plugins/lua/rocklib.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lua/rocklib.c')
-rw-r--r--apps/plugins/lua/rocklib.c4
1 files changed, 2 insertions, 2 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();