summaryrefslogtreecommitdiff
path: root/lib/rbcodec/test/warble.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rbcodec/test/warble.c')
-rw-r--r--lib/rbcodec/test/warble.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/rbcodec/test/warble.c b/lib/rbcodec/test/warble.c
index 8f11b9b56e..9cb7cdfe07 100644
--- a/lib/rbcodec/test/warble.c
+++ b/lib/rbcodec/test/warble.c
@@ -33,6 +33,7 @@
33#include <unistd.h> 33#include <unistd.h>
34#include "buffering.h" /* TYPE_PACKET_AUDIO */ 34#include "buffering.h" /* TYPE_PACKET_AUDIO */
35#include "kernel.h" 35#include "kernel.h"
36#include "core_alloc.h"
36#include "codecs.h" 37#include "codecs.h"
37#include "dsp_core.h" 38#include "dsp_core.h"
38#include "metadata.h" 39#include "metadata.h"
@@ -70,6 +71,16 @@ void debugf(const char *fmt, ...)
70 va_end(ap); 71 va_end(ap);
71} 72}
72 73
74void panicf(const char *fmt, ...)
75{
76 va_list ap;
77 va_start(ap, fmt);
78 vfprintf(stderr, fmt, ap);
79 va_end(ap);
80
81 exit (-1);
82}
83
73int find_first_set_bit(uint32_t value) 84int find_first_set_bit(uint32_t value)
74{ 85{
75 if (value == 0) 86 if (value == 0)
@@ -888,6 +899,7 @@ int main(int argc, char **argv)
888 print_help(argv[0]); 899 print_help(argv[0]);
889 exit(1); 900 exit(1);
890 } 901 }
902 core_allocator_init();
891 playback_init(); 903 playback_init();
892 } else { 904 } else {
893 if (argc > 1) 905 if (argc > 1)