summaryrefslogtreecommitdiff
path: root/apps/mp3data.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/mp3data.h')
-rw-r--r--apps/mp3data.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/apps/mp3data.h b/apps/mp3data.h
index edda352aab..762c2f4583 100644
--- a/apps/mp3data.h
+++ b/apps/mp3data.h
@@ -26,6 +26,8 @@
26#define MPEG_VERSION2 1 26#define MPEG_VERSION2 1
27#define MPEG_VERSION2_5 2 27#define MPEG_VERSION2_5 2
28 28
29#include <string.h> /* size_t */
30
29struct mp3info { 31struct mp3info {
30 /* Standard MP3 frame header fields */ 32 /* Standard MP3 frame header fields */
31 int version; 33 int version;
@@ -63,23 +65,21 @@ unsigned long find_next_frame(int fd,
63 unsigned long reference_header); 65 unsigned long reference_header);
64unsigned long mem_find_next_frame(int startpos, 66unsigned long mem_find_next_frame(int startpos,
65 long *offset, 67 long *offset,
66 long max_offset, 68 long max_offset,
67 unsigned long reference_header); 69 unsigned long reference_header,
70 unsigned char* buf, size_t buflen);
68int get_mp3file_info(int fd, 71int get_mp3file_info(int fd,
69 struct mp3info *info); 72 struct mp3info *info);
70int count_mp3_frames(int fd, 73
71 int startpos, 74int count_mp3_frames(int fd, int startpos, int filesize,
72 int filesize, 75 void (*progressfunc)(int),
73 void (*progressfunc)(int)); 76 unsigned char* buf, size_t buflen);
74int create_xing_header(int fd, 77
75 long startpos, 78int create_xing_header(int fd, long startpos, long filesize,
76 long filesize, 79 unsigned char *buf, unsigned long num_frames,
77 unsigned char *buf, 80 unsigned long rec_time, unsigned long header_template,
78 unsigned long num_frames, 81 void (*progressfunc)(int), bool generate_toc,
79 unsigned long rec_time, 82 unsigned char *tempbuf, size_t tempbuflen );
80 unsigned long header_template,
81 void (*progressfunc)(int),
82 bool generate_toc);
83 83
84extern unsigned long bytes2int(unsigned long b0, 84extern unsigned long bytes2int(unsigned long b0,
85 unsigned long b1, 85 unsigned long b1,