From da6cebb6b0b17b4a75a2bd4f51b7cf70b5dafe40 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Wed, 2 May 2012 17:22:28 -0400 Subject: Use buflib for the allocation of voice PCM resources. Buffers are not allocated and thread is not created until the first call where voice is required. Adds a different callback (sync_callback) to buflib so that other sorts of synchonization are possible, such as briefly locking-out the PCM callback for a buffer move. It's sort of a messy addition but it is needed so voice decoding won't have to be stopped when its buffer is moved. Change-Id: I4d4d8c35eed5dd15fb7ee7df9323af3d036e92b3 --- firmware/font.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'firmware/font.c') diff --git a/firmware/font.c b/firmware/font.c index 895ce15..4b21f0f 100644 --- a/firmware/font.c +++ b/firmware/font.c @@ -141,7 +141,7 @@ void font_lock(int font_id, bool lock) lock_font_handle(buflib_allocations[font_id], lock); } -static struct buflib_callbacks buflibops = {buflibmove_callback, NULL }; +static struct buflib_callbacks buflibops = {buflibmove_callback, NULL, NULL }; static inline struct font *pf_from_handle(int handle) { -- cgit v1.1