paraslash Paraslash Audio Streaming
About   News   Download   Documentation   Development

Macros | Functions | Variables
mp3_afh.c File Reference

para_server's mp3 audio format handler More...

#include <regex.h>
#include "para.h"
#include "error.h"
#include "afh.h"
#include "string.h"
#include "fd.h"
#include <id3tag.h>

Macros

#define MIN_CONSEC_GOOD_FRAMES   4
 
#define FRAME_HEADER_SIZE   4
 
#define MIN_FRAME_SIZE   21
 
#define FOR_EACH_FIELD(f, j, fr)
 

Functions

void id3_field_init (union id3_field *field, enum id3_field_type type)
 
void id3_field_finish (union id3_field *field)
 

Variables

const struct audio_format_handler mp3_afh
 The mp3 audio format handler. More...
 

Detailed Description

para_server's mp3 audio format handler

Macro Definition Documentation

◆ MIN_CONSEC_GOOD_FRAMES

#define MIN_CONSEC_GOOD_FRAMES   4

◆ FRAME_HEADER_SIZE

#define FRAME_HEADER_SIZE   4

◆ MIN_FRAME_SIZE

#define MIN_FRAME_SIZE   21

◆ FOR_EACH_FIELD

#define FOR_EACH_FIELD (   f,
  j,
  fr 
)
Value:
for (j = 0; j < (fr)->nfields && \
(f = id3_frame_field((fr), j)); j++)

Function Documentation

◆ id3_field_init()

void id3_field_init ( union id3_field *  field,
enum id3_field_type  type 
)

◆ id3_field_finish()

void id3_field_finish ( union id3_field *  field)

Variable Documentation

◆ mp3_afh

const struct audio_format_handler mp3_afh
Initial value:
= {
.get_file_info = mp3_get_file_info,
.suffixes = mp3_suffixes,
.rewrite_tags = mp3_rewrite_tags,
}

The mp3 audio format handler.

It does not depend on any libraries and is hence always compiled in.