KVIrc 5.2.6
Developer APIs
MpMp3.h File Reference
#include "kvi_settings.h"
#include <stdio.h>
#include <stdlib.h>
#include <QString>
#include <unistd.h>
#include <sys/stat.h>
#include <ctype.h>
#include <string.h>

Go to the source code of this file.

Classes

struct  id3tag
 
struct  mp3header
 
struct  mp3info
 

Macros

#define FRAME_HEADER_SIZE   4
 
#define INT_FIELD_LEN   4
 
#define MIN_CONSEC_GOOD_FRAMES   4
 
#define MIN_FRAME_SIZE   21
 
#define NUM_SAMPLES   4
 
#define TEXT_FIELD_LEN   30
 

Enumerations

enum  VBR_REPORT { VBR_VARIABLE , VBR_AVERAGE , VBR_MEDIAN }
 

Functions

int frame_length (mp3header *header)
 
int get_first_header (mp3info *mp3, long startpos)
 
int get_header (FILE *file, mp3header *header)
 
int get_id3 (mp3info *mp3)
 
int get_mp3_info (mp3info *mp3)
 
const char * get_typegenre (int idx)
 
int header_bitrate (mp3header *h)
 
int header_channels (mp3header *h)
 
int header_crc (mp3header *h)
 
const char * header_emphasis (mp3header *h)
 
int header_frequency (mp3header *h)
 
int header_layer (mp3header *h)
 
const char * header_mode (mp3header *h)
 
double header_version (mp3header *h)
 
char * pad (char *string, int length)
 
void resetmp3infoStruct (mp3info *i)
 
int sameConstant (mp3header *h1, mp3header *h2)
 
bool scan_mp3_file (QString &szFileName, mp3info *i)
 
char * unpad (char *string)
 

Macro Definition Documentation

◆ FRAME_HEADER_SIZE

#define FRAME_HEADER_SIZE   4

Referenced by get_first_header(), and get_header().

◆ INT_FIELD_LEN

#define INT_FIELD_LEN   4

◆ MIN_CONSEC_GOOD_FRAMES

#define MIN_CONSEC_GOOD_FRAMES   4

Referenced by get_first_header().

◆ MIN_FRAME_SIZE

#define MIN_FRAME_SIZE   21

Referenced by get_header().

◆ NUM_SAMPLES

#define NUM_SAMPLES   4

Referenced by get_mp3_info().

◆ TEXT_FIELD_LEN

#define TEXT_FIELD_LEN   30

Enumeration Type Documentation

◆ VBR_REPORT

enum VBR_REPORT
Enumerator
VBR_VARIABLE 
VBR_AVERAGE 
VBR_MEDIAN 

Function Documentation

◆ frame_length()

◆ get_first_header()

◆ get_header()

◆ get_id3()

◆ get_mp3_info()

◆ get_typegenre()

const char * get_typegenre ( int idx)

References MAXGENRE, and typegenre.

Referenced by MpInterface::genre().

◆ header_bitrate()

int header_bitrate ( mp3header * h)

References bitrate, and h.

Referenced by MpInterface::bitRate(), frame_length(), and get_mp3_info().

◆ header_channels()

int header_channels ( mp3header * h)

References h.

Referenced by MpInterface::channels().

◆ header_crc()

int header_crc ( mp3header * h)

References h.

◆ header_emphasis()

const char * header_emphasis ( mp3header * h)

References emphasis_text, and h.

◆ header_frequency()

int header_frequency ( mp3header * h)

References frequencies, and h.

Referenced by frame_length(), and MpInterface::sampleRate().

◆ header_layer()

int header_layer ( mp3header * h)

References h, and layer_tab.

◆ header_mode()

const char * header_mode ( mp3header * h)

References h, and mode_text.

◆ header_version()

double header_version ( mp3header * h)

◆ pad()

char * pad ( char * string,
int length )

References l.

◆ resetmp3infoStruct()

void resetmp3infoStruct ( mp3info * i)

References i.

Referenced by scan_mp3_file().

◆ sameConstant()

◆ scan_mp3_file()

bool scan_mp3_file ( QString & szFileName,
mp3info * i )

◆ unpad()

char * unpad ( char * string)

Referenced by get_id3().