summaryrefslogtreecommitdiff
path: root/apps/plugins/a52towav.c
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2005-02-16 18:51:21 +0000
committerDave Chapman <dave@dchapman.com>2005-02-16 18:51:21 +0000
commit9b32a1988f848145d96ba2be8cba86e837196df3 (patch)
tree006a5e22ffbc054a1504f69c14567ad6e7707236 /apps/plugins/a52towav.c
parent711f763a127b5be80018c49db333841178103913 (diff)
downloadrockbox-9b32a1988f848145d96ba2be8cba86e837196df3.tar.gz
rockbox-9b32a1988f848145d96ba2be8cba86e837196df3.zip
Move contents of plugins/xxx2wav.h into the plugin library
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5982 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/a52towav.c')
-rw-r--r--apps/plugins/a52towav.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/plugins/a52towav.c b/apps/plugins/a52towav.c
index 3e81c9db0c..f62106a8c3 100644
--- a/apps/plugins/a52towav.c
+++ b/apps/plugins/a52towav.c
@@ -27,11 +27,9 @@
27#include <codecs/liba52/config.h> 27#include <codecs/liba52/config.h>
28#include <codecs/liba52/a52.h> 28#include <codecs/liba52/a52.h>
29 29
30static struct plugin_api* rb; 30#include "lib/xxx2wav.h" /* Helper functions common to test decoders */
31
32/* Helper functions common to all decoder test viewers (uses rb) */
33 31
34#include "xxx2wav.h" 32static struct plugin_api* rb;
35 33
36/* FIX: We can remove this warning when the build system has a 34/* FIX: We can remove this warning when the build system has a
37 mechanism for auto-detecting the endianness of the target CPU - 35 mechanism for auto-detecting the endianness of the target CPU -
@@ -167,6 +165,8 @@ void a52_decode_data (file_info_struct* file_info, uint8_t * start, uint8_t * en
167/* this is the plugin entry point */ 165/* this is the plugin entry point */
168enum plugin_status plugin_start(struct plugin_api* api, void* file) 166enum plugin_status plugin_start(struct plugin_api* api, void* file)
169{ 167{
168 file_info_struct file_info;
169
170 /* Generic plugin initialisation */ 170 /* Generic plugin initialisation */
171 171
172 TEST_PLUGIN_API(api); 172 TEST_PLUGIN_API(api);
@@ -175,7 +175,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* file)
175 175
176 /* This function sets up the buffers and reads the file into RAM */ 176 /* This function sets up the buffers and reads the file into RAM */
177 177
178 if (local_init(file,"/ac3test.wav",&file_info)) { 178 if (local_init(file,"/ac3test.wav",&file_info,api)) {
179 return PLUGIN_ERROR; 179 return PLUGIN_ERROR;
180 } 180 }
181 181