File: id3.h

package info (click to toggle)
poc-streamer 0.4.2-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,000 kB
  • sloc: ansic: 8,782; makefile: 307; ruby: 152; perl: 135; yacc: 115; lex: 36; sh: 30
file content (36 lines) | stat: -rw-r--r-- 1,132 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
 * id3v2 generation routines
 *
 * v2 only because this seems to be supported by most players
 *
 * (c) 2005 bl0rg.net
 */

#ifndef ID3_H__
#define ID3_H__

#define ID3_TAG_SIZE    8192
#define ID3_HEADER_SIZE 10

#include "file.h"

unsigned int id3_fill_comment(unsigned char *buf, unsigned int len,
                              unsigned char encoding,
                              unsigned char *short_comment,
                              unsigned char *long_comment,
                              unsigned char *language);
unsigned int id3_fill_tframe(unsigned char *buf, unsigned int len,
                             unsigned char *type,
                             unsigned char encoding,
                             unsigned char *string);
int id3_fill_header(unsigned char *buf, unsigned int len,
                    unsigned long id3_size);

int id3_write_tag(file_t *outfile,
                  unsigned char *album_title,
                  unsigned char *artist,
                  unsigned char *title,
                  unsigned int track_number,
                  unsigned char *comment);

#endif /* ID3_H__ */