summaryrefslogtreecommitdiffstats
path: root/firmware/pcm_record.c
diff options
context:
space:
mode:
authorPeter D'Hoye <peter.dhoye@gmail.com>2006-04-30 22:28:45 +0000
committerPeter D'Hoye <peter.dhoye@gmail.com>2006-04-30 22:28:45 +0000
commit8e71f90940359c0663f8b3c3d65eb6e00adfaef6 (patch)
treea46697185c5e6f3e4e6e143306b1ded2e2e2f802 /firmware/pcm_record.c
parent65167c96d3ae4f48c1807773eee9d7b78521c4a6 (diff)
downloadrockbox-8e71f90940359c0663f8b3c3d65eb6e00adfaef6.tar.gz
rockbox-8e71f90940359c0663f8b3c3d65eb6e00adfaef6.tar.bz2
rockbox-8e71f90940359c0663f8b3c3d65eb6e00adfaef6.zip
The recording buffer should not try to use the voice buffer, so map our buffer after it. On swcodec targets, recording always uses this buffer so always notify the others that we did. Fixes bug 4754.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9841 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/pcm_record.c')
-rw-r--r--firmware/pcm_record.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/pcm_record.c b/firmware/pcm_record.c
index 8805e73157..8d34b345c8 100644
--- a/firmware/pcm_record.c
+++ b/firmware/pcm_record.c
@@ -820,8 +820,8 @@ static void pcmrec_init(void)
is_paused = false;
is_error = false;
- rec_buffer = (unsigned char*)(((unsigned long)audiobuf) & ~3);
- buffer_size = (long)audiobufend - (long)audiobuf - 16;
+ rec_buffer = (unsigned char*)(((unsigned long)audiobuf + talk_get_bufsize()) & ~3);
+ buffer_size = (long)audiobufend - (long)audiobuf - talk_get_bufsize() - 16;
logf("buf size: %d kb", buffer_size/1024);