diff options
Diffstat (limited to 'lib/rbcodec/test/warble.c')
-rw-r--r-- | lib/rbcodec/test/warble.c | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/lib/rbcodec/test/warble.c b/lib/rbcodec/test/warble.c index 2f52062e50..53d360d89e 100644 --- a/lib/rbcodec/test/warble.c +++ b/lib/rbcodec/test/warble.c | |||
@@ -34,12 +34,13 @@ | |||
34 | #include "buffering.h" /* TYPE_PACKET_AUDIO */ | 34 | #include "buffering.h" /* TYPE_PACKET_AUDIO */ |
35 | #include "codecs.h" | 35 | #include "codecs.h" |
36 | #include "core_alloc.h" /* core_allocator_init */ | 36 | #include "core_alloc.h" /* core_allocator_init */ |
37 | #include "debug.h" | ||
38 | #include "dsp_core.h" | 37 | #include "dsp_core.h" |
39 | #include "metadata.h" | 38 | #include "metadata.h" |
40 | #include "settings.h" | 39 | #include "settings.h" |
41 | #include "sound.h" | 40 | #include "sound.h" |
42 | #include "tdspeed.h" | 41 | #include "tdspeed.h" |
42 | #include "kernel.h" | ||
43 | #include "platform.h" | ||
43 | 44 | ||
44 | /***************** EXPORTED *****************/ | 45 | /***************** EXPORTED *****************/ |
45 | 46 | ||
@@ -581,6 +582,29 @@ static unsigned ci_sleep(unsigned ticks) | |||
581 | return 0; | 582 | return 0; |
582 | } | 583 | } |
583 | 584 | ||
585 | static void ci_debugf(const char *fmt, ...) | ||
586 | { | ||
587 | va_list ap; | ||
588 | va_start(ap, fmt); | ||
589 | vfprintf(stderr, fmt, ap); | ||
590 | va_end(ap); | ||
591 | } | ||
592 | |||
593 | #ifdef ROCKBOX_HAS_LOGF | ||
594 | static void ci_logf(const char *fmt, ...) | ||
595 | { | ||
596 | va_list ap; | ||
597 | va_start(ap, fmt); | ||
598 | vfprintf(stderr, fmt, ap); | ||
599 | putc('\n', stderr); | ||
600 | va_end(ap); | ||
601 | } | ||
602 | #endif | ||
603 | |||
604 | static void commit_dcache(void) {} | ||
605 | static void commit_discard_dcache(void) {} | ||
606 | static void commit_discard_idcache(void) {} | ||
607 | |||
584 | static struct codec_api ci = { | 608 | static struct codec_api ci = { |
585 | 609 | ||
586 | 0, /* filesize */ | 610 | 0, /* filesize */ |
@@ -628,10 +652,10 @@ static struct codec_api ci = { | |||
628 | memcmp, | 652 | memcmp, |
629 | memchr, | 653 | memchr, |
630 | #if defined(DEBUG) || defined(SIMULATOR) | 654 | #if defined(DEBUG) || defined(SIMULATOR) |
631 | debugf, | 655 | ci_debugf, |
632 | #endif | 656 | #endif |
633 | #ifdef ROCKBOX_HAS_LOGF | 657 | #ifdef ROCKBOX_HAS_LOGF |
634 | debugf, /* logf */ | 658 | ci_logf, |
635 | #endif | 659 | #endif |
636 | 660 | ||
637 | qsort, | 661 | qsort, |