mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
pcm: Get rid of pcm_play_pause() and associated APIs
Nothing in the core has used it for some time. It's exported to the plugin API but the last plugins to use it were switched to the mixer API back in 2011. This allows us to get rid of pcm_play_dma_pause() from all audio drivers Change-Id: Ic3fa02592316f84963e41d792d1cabb436d1ff6b
This commit is contained in:
parent
2d85c72151
commit
fe2d52cc7d
35 changed files with 20 additions and 388 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue