From 4f36ea8fbf877e8af938c0bb16591f3c6cffd4f8 Mon Sep 17 00:00:00 2001 From: Jörg Hohensohn Date: Sun, 14 Mar 2004 21:33:53 +0000 Subject: First step of the voice-UI: the menus can talk. You need a "voicefont" file in .rockbox to use this. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4381 a1c6a512-1295-4272-9138-f99709370657 --- firmware/mpeg.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'firmware/mpeg.c') diff --git a/firmware/mpeg.c b/firmware/mpeg.c index ff545f03d0..0f676f1612 100644 --- a/firmware/mpeg.c +++ b/firmware/mpeg.c @@ -2134,6 +2134,7 @@ void mpeg_record(char *filename) recording_filename[MAX_PATH - 1] = 0; disable_xing_header = false; + talk_buffer_steal(); /* we use the mp3 buffer, need to tell */ queue_post(&mpeg_queue, MPEG_RECORD, NULL); } @@ -2148,6 +2149,7 @@ static void start_prerecording(void) prerecord_timeout = current_tick + HZ; memset(prerecord_buffer, 0, sizeof(prerecord_buffer)); reset_mp3_buffer(); + talk_buffer_steal(); /* we use the mp3 buffer, need to tell */ is_prerecording = true; @@ -2404,6 +2406,7 @@ void mpeg_play(int offset) #else is_playing = true; + talk_buffer_steal(); /* we use the mp3 buffer, need to tell */ queue_post(&mpeg_queue, MPEG_PLAY, (void*)offset); #endif /* #ifdef SIMULATOR */ -- cgit v1.2.3