diff options
Diffstat (limited to 'apps/plugins/lua/rocklib.c')
-rw-r--r-- | apps/plugins/lua/rocklib.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/apps/plugins/lua/rocklib.c b/apps/plugins/lua/rocklib.c index 8921c0a4c3..6219bb2e5a 100644 --- a/apps/plugins/lua/rocklib.c +++ b/apps/plugins/lua/rocklib.c | |||
@@ -519,12 +519,12 @@ RB_WRAP(sound) | |||
519 | 519 | ||
520 | RB_WRAP(pcm) | 520 | RB_WRAP(pcm) |
521 | { | 521 | { |
522 | enum e_pcm {PCM_APPLYSETTINGS = 0, PCM_ISPLAYING, PCM_ISPAUSED, | 522 | enum e_pcm {PCM_APPLYSETTINGS = 0, PCM_ISPLAYING, |
523 | PCM_PLAYSTOP, PCM_PLAYPAUSE, PCM_PLAYLOCK, PCM_PLAYUNLOCK, | 523 | PCM_PLAYSTOP, PCM_PLAYLOCK, PCM_PLAYUNLOCK, |
524 | PCM_CALCULATEPEAKS, PCM_SETFREQUENCY, PCM_GETBYTESWAITING, PCM_ECOUNT}; | 524 | PCM_CALCULATEPEAKS, PCM_SETFREQUENCY, PCM_GETBYTESWAITING, PCM_ECOUNT}; |
525 | 525 | ||
526 | const char *pcm_option[] = {"apply_settings", "is_playing", "is_paused", | 526 | const char *pcm_option[] = {"apply_settings", "is_playing", |
527 | "play_stop", "play_pause", "play_lock", "play_unlock", | 527 | "play_stop", "play_lock", "play_unlock", |
528 | "calculate_peaks", "set_frequency", "get_bytes_waiting", NULL}; | 528 | "calculate_peaks", "set_frequency", "get_bytes_waiting", NULL}; |
529 | bool b_result; | 529 | bool b_result; |
530 | int left, right; | 530 | int left, right; |
@@ -542,13 +542,6 @@ RB_WRAP(pcm) | |||
542 | b_result = rb->pcm_is_playing(); | 542 | b_result = rb->pcm_is_playing(); |
543 | lua_pushboolean(L, b_result); | 543 | lua_pushboolean(L, b_result); |
544 | break; | 544 | break; |
545 | case PCM_ISPAUSED: | ||
546 | b_result = rb->pcm_is_paused(); | ||
547 | lua_pushboolean(L, b_result); | ||
548 | break; | ||
549 | case PCM_PLAYPAUSE: | ||
550 | rb->pcm_play_pause(luaL_checkboolean(L, 2)); | ||
551 | break; | ||
552 | case PCM_PLAYSTOP: | 545 | case PCM_PLAYSTOP: |
553 | rb->pcm_play_stop(); | 546 | rb->pcm_play_stop(); |
554 | break; | 547 | break; |