summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorSteve Bavin <pondlife@pondlife.me>2006-09-14 12:50:34 +0000
committerSteve Bavin <pondlife@pondlife.me>2006-09-14 12:50:34 +0000
commit22599d0a0d2fa294814dc79f1e15ec11effdf245 (patch)
tree78e10ff701c9d12b6224d32df14a19cbe135e5df /apps
parent0b1ae73d3af28815169765be9cd50c9c0020594f (diff)
downloadrockbox-22599d0a0d2fa294814dc79f1e15ec11effdf245.tar.gz
rockbox-22599d0a0d2fa294814dc79f1e15ec11effdf245.tar.bz2
rockbox-22599d0a0d2fa294814dc79f1e15ec11effdf245.zip
Playlist resume no longer uses voice file buffer.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10944 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/playlist.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index 2f0895a590..6c37a9a71d 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -484,10 +484,14 @@ static int add_indices_to_playlist(struct playlist_info* playlist,
{
/* use mp3 buffer for maximum load speed */
audio_stop();
+#if CONFIG_CODEC != SWCODEC
talk_buffer_steal(); /* we use the mp3 buffer, need to tell */
-
- buffer = (char *)audiobuf;
buflen = (audiobufend - audiobuf);
+ buffer = (char *)audiobuf;
+#else
+ buflen = (audiobufend - audiobuf - talk_get_bufsize());
+ buffer = (char *)&audiobuf[talk_get_bufsize()];
+#endif
}
store_index = true;