diff options
author | Dave Chapman <dave@dchapman.com> | 2007-05-07 22:30:23 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2007-05-07 22:30:23 +0000 |
commit | f4a9dab4d161a8f59800656417baf38e6f163f9d (patch) | |
tree | ab2b89c90480e1dbae5c83ece53a3ab7c116adf0 /apps/playback.h | |
parent | 173b611921db2d353d977dc617a8288345f5e6ed (diff) | |
download | rockbox-f4a9dab4d161a8f59800656417baf38e6f163f9d.tar.gz rockbox-f4a9dab4d161a8f59800656417baf38e6f163f9d.zip |
Use a separate thread in test_codec, with the same (IRAM) stack as the main codec thread. Add a function to the plugin API to steal the codec thread, which test_codec copies and then restores. Now libmad can be benchmarked.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13347 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/playback.h')
-rw-r--r-- | apps/playback.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/playback.h b/apps/playback.h index eaab4386e0..89fc5fde53 100644 --- a/apps/playback.h +++ b/apps/playback.h @@ -63,6 +63,7 @@ void audio_set_track_buffer_event(void (*handler)(struct mp3entry *id3, bool last_track)); void audio_set_track_unbuffer_event(void (*handler)(struct mp3entry *id3, bool last_track)); +void steal_codec_stack(unsigned char** stack, size_t* size); #if CONFIG_CODEC == SWCODEC /* This #ifdef is better here than gui/gwps.c */ extern void audio_next_dir(void); |