diff options
Diffstat (limited to 'apps/codecs/libcook/rm.c')
-rw-r--r-- | apps/codecs/libcook/rm.c | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/apps/codecs/libcook/rm.c b/apps/codecs/libcook/rm.c index f2e9635bfc..92b6428462 100644 --- a/apps/codecs/libcook/rm.c +++ b/apps/codecs/libcook/rm.c | |||
@@ -27,11 +27,7 @@ | |||
27 | #include <fcntl.h> | 27 | #include <fcntl.h> |
28 | #include <unistd.h> | 28 | #include <unistd.h> |
29 | 29 | ||
30 | #include "rm2wav.h" | 30 | #include "rm.h" |
31 | |||
32 | #define MAX_PATH 260 | ||
33 | #define PKT_HEADER_SIZE 12 | ||
34 | #define RAW_AUDIO_DATA packet_length-PKT_HEADER_SIZE | ||
35 | 31 | ||
36 | 32 | ||
37 | #if 0 | 33 | #if 0 |
@@ -40,23 +36,8 @@ | |||
40 | #else | 36 | #else |
41 | #define DEBUGF(...) | 37 | #define DEBUGF(...) |
42 | #endif | 38 | #endif |
43 | |||
44 | /* ASF codec IDs */ | ||
45 | #define CODEC_ID_WMAV1 0x160 | ||
46 | #define CODEC_ID_WMAV2 0x161 | ||
47 | 39 | ||
48 | /* Some Rockbox-like functions (these should be implemented in metadata_common.[ch] */ | 40 | /* Some Rockbox-like functions (these should be implemented in metadata_common.[ch] */ |
49 | struct cook_extradata { | ||
50 | uint32_t cook_version; | ||
51 | uint16_t samples_pf_pc; /* samples per frame per channel */ | ||
52 | uint16_t nb_subbands; /* number of subbands in the frequency domain */ | ||
53 | |||
54 | /* extra 8 bytes for stereo data */ | ||
55 | uint32_t unused; | ||
56 | uint16_t js_subband_start; /* joint stereo subband start */ | ||
57 | uint16_t js_vlc_bits; | ||
58 | }; | ||
59 | |||
60 | static int read_uint8(int fd, uint8_t* buf) | 41 | static int read_uint8(int fd, uint8_t* buf) |
61 | { | 42 | { |
62 | unsigned char tmp[1]; | 43 | unsigned char tmp[1]; |