summaryrefslogtreecommitdiffstats
path: root/apps/voice_thread.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-09-20 10:36:25 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-09-20 14:52:30 +0000
commit5d40d9758500e1215c2eeb326ec06fa95500be67 (patch)
treee28fb0b66e207204f8c827e3201f13fe6e301c25 /apps/voice_thread.c
parente404026308081dd1aef79e891326040747fef9d6 (diff)
downloadrockbox-5d40d9758500e1215c2eeb326ec06fa95500be67.tar.gz
rockbox-5d40d9758500e1215c2eeb326ec06fa95500be67.tar.bz2
rockbox-5d40d9758500e1215c2eeb326ec06fa95500be67.zip
voice: rename mp3_play_* functions to voice_play_*
Remove mp3_is_playing() entirely, in favor of pcm_is_playing() Remove mp3_play_pause() entirely, as it's a dummy/no-op call Remoce some archos-specific comments Change-Id: I4e9ff323490a93add00809efd19e0d4e3f198b2d
Diffstat (limited to 'apps/voice_thread.c')
-rw-r--r--apps/voice_thread.c20
1 files changed, 4 insertions, 16 deletions
diff --git a/apps/voice_thread.c b/apps/voice_thread.c
index 325860be27..171902d10f 100644
--- a/apps/voice_thread.c
+++ b/apps/voice_thread.c
@@ -121,7 +121,7 @@ enum voice_thread_messages
struct voice_info
{
/* Callback to get more clips */
- mp3_play_callback_t get_more;
+ voice_play_callback_t get_more;
/* Start of clip */
const void *start;
/* Size of clip */
@@ -276,8 +276,8 @@ static void voice_buf_commit(int count)
}
/* Stop any current clip and start playing a new one */
-void mp3_play_data(const void *start, size_t size,
- mp3_play_callback_t get_more)
+void voice_play_data(const void *start, size_t size,
+ voice_play_callback_t get_more)
{
if (voice_thread_id && start && size && get_more)
{
@@ -294,7 +294,7 @@ void mp3_play_data(const void *start, size_t size,
}
/* Stop current voice clip from playing */
-void mp3_play_stop(void)
+void voice_play_stop(void)
{
if (voice_thread_id != 0)
{
@@ -303,18 +303,6 @@ void mp3_play_stop(void)
}
}
-void mp3_play_pause(bool play)
-{
- /* a dummy */
- (void)play;
-}
-
-/* Tell if voice is still in a playing state */
-bool mp3_is_playing(void)
-{
- return voice_playing;
-}
-
/* This function is meant to be used by the buffer request functions to
ensure the codec is no longer active */
void voice_stop(void)