path: root/apps/talk.c
diff options
authorThomas Martitz <>2011-08-30 14:01:33 +0000
committerThomas Martitz <>2011-08-30 14:01:33 +0000
commitd0b72e25903574acb1cf9184a6052cdd646dbc37 (patch)
tree5be8db5ee00b2a727e4821cf51a5f7bcf3991073 /apps/talk.c
parentc940811ade7d99a0e0d414df7c6509672413684a (diff)
GSoC/Buflib: Add buflib memory alocator to the core.
The buflib memory allocator is handle based and can free and compact, move or resize memory on demand. This allows to effeciently allocate memory dynamically without an MMU, by avoiding fragmentation through memory compaction. This patch adds the buflib library to the core, along with convinience wrappers to omit the context parameter. Compaction is not yet enabled, but will be in a later patch. Therefore, this acts as a replacement for buffer_alloc/buffer_get_buffer() with the benifit of a debug menu. See buflib.h for some API documentation. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/talk.c')
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/talk.c b/apps/talk.c
index 0c3b769d82..29657385a7 100644
--- a/apps/talk.c
+++ b/apps/talk.c
@@ -27,7 +27,6 @@
#include <stddef.h>
#include "string-extra.h"
#include "file.h"
-#include "buffer.h"
#include "system.h"
#include "kernel.h"
#include "settings.h"
@@ -711,7 +710,7 @@ void talk_init(void)
/* test if we can open and if it fits in the audiobuffer */
- size_t audiobufsz = buffer_available();
+ size_t audiobufsz = audio_buffer_available();
if (voicefile_size <= audiobufsz) {
has_voicefile = true;
} else {