From 7cdd0fe6ea8561a94862f0b0dd53fa8b5a7628e9 Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Mon, 7 May 2007 17:23:31 +0000 Subject: Initial version of a test_codec plugin (viewer). This loads the audio file into the audio buffer and decodes it as fast as it can via a locally implemented version of the codec API. Intended for use when optimising codecs - so isn't built by default. Remember to add it to both plugins/SOURCES and viewers.config to enable it. Currently the codec is run in the main thread which means mpa.codec doesn't work - it requires more stack than is available on the main thread. The solution will be to create a new thread in the plugin which steals the main codec thread's IRAM stack, but that's not done yet. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13345 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugin.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'apps/plugin.c') diff --git a/apps/plugin.c b/apps/plugin.c index ea228c4..9e17c23 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -488,6 +488,12 @@ static const struct plugin_api rockbox_api = { spinlock_lock, spinlock_unlock, #endif + +#if (CONFIG_CODEC == SWCODEC) + codec_load_file, + get_metadata, + get_codec_filename, +#endif }; int plugin_load(const char* plugin, void* parameter) -- cgit v1.1