1
0
Fork 0
forked from len0rd/rockbox
foxbox/apps/recorder
Thomas Martitz 22e802e800 playback,talk: Share audiobuffer via core_alloc_maximum().
This fixes the radioart crash that was the result of buffering.c working
on a freed buffer at the same time as buflib (radioart uses buffering.c for the
images). With this change the buffer is owned by buflib exclusively so this
cannot happen.

As a result, audio_get_buffer() doesn't exist anymore. Callers should call
core_alloc_maximum() directly. This buffer needs to be protected as usual
against movement if necessary (previously it was not protected at all which
cased the radioart crash), To get most of it they can adjust the willingness of
the talk engine to give its buffer away (at the expense of disabling voice
interface) with the new talk_buffer_set_policy() function.

Change-Id: I52123012208d04967876a304451d634e2bef3a33
2013-12-23 12:17:38 +01:00
..
albumart.c Use buflib for all skin engine allocations. 2011-11-15 14:11:08 +00:00
albumart.h Fix warning in android build. 2011-02-27 21:09:36 +00:00
bmp.c Fix errors introduced by a62bd92. 2013-12-22 21:05:54 +01:00
bmp.h Support GIMP bmp files. 2013-12-22 19:55:55 +01:00
icons.c FS#12378 : Remove various unused code, and comment out some unused code and data for reference or future use. 2011-12-14 21:45:25 +00:00
icons.h FS#12378 : Remove various unused code, and comment out some unused code and data for reference or future use. 2011-12-14 21:45:25 +00:00
jpeg_common.h Move YUV->RGB in JPEG load from before scaler to after scaler. Required change to struct custom_format, so sorted the plugin API as well. 2009-05-06 04:53:56 +00:00
jpeg_idct_arm.S FS#11335 by me: make ARM assembly functions thumb-friendly 2010-06-11 04:41:36 +00:00
jpeg_load.c Set alpha_offset to zero when loading a JPEG. 2011-11-09 23:25:36 +00:00
jpeg_load.h Embedded album art support in MP3/ID3v2 tags. 2011-02-09 20:13:13 +00:00
keyboard.c Swap over a position of cursor while reaching the end of filename in keyboard 2013-07-09 18:43:10 +02:00
pcm_record.c playback,talk: Share audiobuffer via core_alloc_maximum(). 2013-12-23 12:17:38 +01:00
pcm_record.h Update software recording engine to latest codec interface. 2013-06-30 00:40:27 +02:00
peakmeter.c Clean up peak calculating code. 2012-05-02 20:53:07 -04:00
peakmeter.h Make function calc_db in peakmeter.c static 2011-10-04 21:25:26 +00:00
recording.c playback,talk: Share audiobuffer via core_alloc_maximum(). 2013-12-23 12:17:38 +01:00
recording.h Fix yellow 2011-01-29 15:14:23 +00:00
resize.c Fix bitmap scaling for Coldfire. Closes FS#12411. 2011-12-19 19:17:13 +00:00
resize.h Adapt the resize-on-load image scalers to support the alpha channel. 2011-11-08 21:39:23 +00:00