diff options
| author | Thomas Martitz <kugel@rockbox.org> | 2011-08-30 14:01:45 +0000 |
|---|---|---|
| committer | Thomas Martitz <kugel@rockbox.org> | 2011-08-30 14:01:45 +0000 |
| commit | baa070cca6d459a7c5aed81f29e4cc4f6c7410b3 (patch) | |
| tree | 5123360aea420b96e4a97a8e88cf51b4277152d9 /apps/plugins | |
| parent | d0b72e25903574acb1cf9184a6052cdd646dbc37 (diff) | |
| download | rockbox-baa070cca6d459a7c5aed81f29e4cc4f6c7410b3.zip rockbox-baa070cca6d459a7c5aed81f29e4cc4f6c7410b3.tar.gz rockbox-baa070cca6d459a7c5aed81f29e4cc4f6c7410b3.tar.bz2 rockbox-baa070cca6d459a7c5aed81f29e4cc4f6c7410b3.tar.xz | |
GSoC/Buflib: Enable compaction in buflib.
This enables the ability to allocate (and free) memory dynamically
without fragmentation, through compaction. This means allocations can move
and fragmentation be reduced. Most changes are preparing Rockbox for this,
which many times means adding a move callback which can temporarily disable
movement when the corresponding code is in a critical section.
For now, the audio buffer allocation has a central role, because it's the one
having allocated most. This buffer is able to shrink itself, for which it
needs to stop playback for a very short moment. For this,
audio_buffer_available() returns the size of the audio buffer which can
possibly be used by other allocations because the audio buffer can shrink.
lastfm scrobbling and timestretch can now be toggled at runtime without
requiring a reboot.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30381 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
| -rw-r--r-- | apps/plugins/imageviewer/imageviewer.c | 2 | ||||
| -rw-r--r-- | apps/plugins/mikmod/mikmod.c | 2 | ||||
| -rw-r--r-- | apps/plugins/mpegplayer/mpegplayer.c | 2 | ||||
| -rw-r--r-- | apps/plugins/rockpaint.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/imageviewer/imageviewer.c b/apps/plugins/imageviewer/imageviewer.c index 80e1ba4..044c835 100644 --- a/apps/plugins/imageviewer/imageviewer.c +++ b/apps/plugins/imageviewer/imageviewer.c @@ -136,7 +136,7 @@ static enum image_type image_type = IMAGE_UNKNOWN; static void get_pic_list(void) { struct tree_context *tree = rb->tree_get_context(); - struct entry *dircache = tree->cache.entries; + struct entry *dircache = rb->tree_get_entries(tree); int i; char *pname; diff --git a/apps/plugins/mikmod/mikmod.c b/apps/plugins/mikmod/mikmod.c index dff0fce..d132f80 100644 --- a/apps/plugins/mikmod/mikmod.c +++ b/apps/plugins/mikmod/mikmod.c @@ -185,7 +185,7 @@ bool mod_ext(const char ext[]) void get_mod_list(void) { struct tree_context *tree = rb->tree_get_context(); - struct entry *dircache = tree->cache.entries; + struct entry *dircache = rb->tree_get_entries(tree); int i; char *pname; diff --git a/apps/plugins/mpegplayer/mpegplayer.c b/apps/plugins/mpegplayer/mpegplayer.c index 156ec01..84eae42 100644 --- a/apps/plugins/mpegplayer/mpegplayer.c +++ b/apps/plugins/mpegplayer/mpegplayer.c @@ -1876,7 +1876,7 @@ static bool is_videofile(const char* file) static bool get_videofile(int direction, char* videofile, size_t bufsize) { struct tree_context *tree = rb->tree_get_context(); - struct entry *dircache = tree->cache.entries; + struct entry *dircache = rb->tree_get_entries(tree); int i, step, end, found = 0; char *videoname = rb->strrchr(videofile, '/') + 1; size_t rest = bufsize - (videoname - videofile) - 1; diff --git a/apps/plugins/rockpaint.c b/apps/plugins/rockpaint.c index add09c7..d1cc8f2 100644 --- a/apps/plugins/rockpaint.c +++ b/apps/plugins/rockpaint.c @@ -948,7 +948,7 @@ static bool browse_fonts( char *dst, int dst_size ) tree = rb->tree_get_context(); backup = *tree; - dc = tree->cache.entries; + dc = rb->tree_get_entries(tree); a = backup.currdir+rb->strlen(backup.currdir)-1; if( *a != '/' ) { |