File: id3parse.h

package info (click to toggle)
mp3blaster 2-0b16-1.1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,012 kB
  • ctags: 1,241
  • sloc: cpp: 12,228; ansic: 1,557; sh: 362; makefile: 107
file content (37 lines) | stat: -rw-r--r-- 540 bytes parent folder | download | duplicates (2)
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
37
#ifndef _MP3BL_CLASS_ID3PARSE_
#define _MP3BL_CLASS_ID3PARSE_

#include <stdio.h>
#include <stdlib.h>

struct id3header
{
	char songname[31];
	char artist[31];
	char type[31];
	char year[5];
	char etc[31];
	unsigned char genre;
	//char genre_txt[41]; 
};

class id3Parse
{
public:

	id3Parse(const char *filename);
	~id3Parse();

	struct id3header *parseID3();
	int writeID3(struct id3header *);

private:
	int search_header(FILE *);
	int appendNewID3Header(FILE *);
	char *getGenre(const char);

	char *flnam;
	id3header *song;
};

#endif