diff options
author | Dave Chapman <dave@dchapman.com> | 2007-05-07 17:23:31 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2007-05-07 17:23:31 +0000 |
commit | 7cdd0fe6ea8561a94862f0b0dd53fa8b5a7628e9 (patch) | |
tree | 59448bc2cbc66bb7369d87a3864162d90618ba38 /apps/playback.c | |
parent | 1feb8bd4a11cdfc552799958ad8539090eec2b74 (diff) |
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
Diffstat (limited to 'apps/playback.c')
-rw-r--r-- | apps/playback.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/playback.c b/apps/playback.c index b26754eb3a..889cf9406e 100644 --- a/apps/playback.c +++ b/apps/playback.c @@ -275,7 +275,6 @@ static size_t high_watermark = 0; /* High watermark for rebuffer (A/V/other) */ /* Multiple threads */ static void set_current_codec(int codec_idx); -static const char *get_codec_filename(int enc_spec); /* (A-/C-/V-) */ /* Set the watermark to trigger buffer fill (A/C) FIXME */ static void set_filebuf_watermark(int seconds); @@ -995,7 +994,7 @@ static void set_filebuf_watermark(int seconds) conf_watermark = bytes; } -static const char * get_codec_filename(int cod_spec) +const char * get_codec_filename(int cod_spec) { const char *fname; |