From 159c52dd36e5c008612458192904f57ea6dfdfad Mon Sep 17 00:00:00 2001 From: Miika Pekkarinen Date: Sat, 20 Aug 2005 11:13:19 +0000 Subject: Initial voice ui support for software codec platforms. Added also a beep when changing tracks. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7360 a1c6a512-1295-4272-9138-f99709370657 --- apps/playlist.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'apps/playlist.c') diff --git a/apps/playlist.c b/apps/playlist.c index 68fd8be369..bd443e4f38 100644 --- a/apps/playlist.c +++ b/apps/playlist.c @@ -1413,9 +1413,14 @@ int playlist_resume(void) }; /* use mp3 buffer for maximum load speed */ +#if CONFIG_HWCODEC != MASNONE talk_buffer_steal(); /* we use the mp3 buffer, need to tell */ buflen = (audiobufend - audiobuf); buffer = audiobuf; +#else + buflen = (audiobufend - audiobuf - talk_get_bufsize()); + buffer = &audiobuf[talk_get_bufsize()]; +#endif empty_playlist(playlist, true); @@ -1827,7 +1832,9 @@ int playlist_start(int start_index, int offset) struct playlist_info* playlist = ¤t_playlist; playlist->index = start_index; +#if CONFIG_HWCODEC != MASNONE talk_buffer_steal(); /* will use the mp3 buffer */ +#endif audio_play(offset); return 0; -- cgit v1.2.3