1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Peter D'Hoye 2006-04-30 22:28:45 +00:00
parent 65167c96d3
commit 8e71f90940
2 changed files with 10 additions and 6 deletions

View file

@ -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);