summaryrefslogtreecommitdiffstats
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.c15
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)
RB_WRAP(pcm)
{
- enum e_pcm {PCM_APPLYSETTINGS = 0, PCM_ISPLAYING, PCM_ISPAUSED,
- PCM_PLAYSTOP, PCM_PLAYPAUSE, PCM_PLAYLOCK, PCM_PLAYUNLOCK,
+ enum e_pcm {PCM_APPLYSETTINGS = 0, PCM_ISPLAYING,
+ PCM_PLAYSTOP, PCM_PLAYLOCK, PCM_PLAYUNLOCK,
PCM_CALCULATEPEAKS, PCM_SETFREQUENCY, PCM_GETBYTESWAITING, PCM_ECOUNT};
- const char *pcm_option[] = {"apply_settings", "is_playing", "is_paused",
- "play_stop", "play_pause", "play_lock", "play_unlock",
+ const char *pcm_option[] = {"apply_settings", "is_playing",
+ "play_stop", "play_lock", "play_unlock",
"calculate_peaks", "set_frequency", "get_bytes_waiting", NULL};
bool b_result;
int left, right;
@@ -542,13 +542,6 @@ RB_WRAP(pcm)
b_result = rb->pcm_is_playing();
lua_pushboolean(L, b_result);
break;
- case PCM_ISPAUSED:
- b_result = rb->pcm_is_paused();
- lua_pushboolean(L, b_result);
- break;
- case PCM_PLAYPAUSE:
- rb->pcm_play_pause(luaL_checkboolean(L, 2));
- break;
case PCM_PLAYSTOP:
rb->pcm_play_stop();
break;