paraslash Paraslash Audio Streaming
About   News   Download   Documentation   Development

Macros | Variables
mp3dec_filter.c File Reference

Paraslash's mp3 decoder. More...

#include <mad.h>
#include <regex.h>
#include <lopsub.h>
#include "filter_cmd.lsg.h"
#include "para.h"
#include "list.h"
#include "sched.h"
#include "buffer_tree.h"
#include "filter.h"
#include "error.h"
#include "string.h"

Macros

#define MAD_TO_SHORT(f)
 Convert a sample value from libmad to a signed short. More...
 
#define MP3DEC_MAX_FRAME   8192
 

Variables

const struct filter lsg_filter_cmd_com_mp3dec_user_data
 

Detailed Description

Paraslash's mp3 decoder.

Macro Definition Documentation

◆ MAD_TO_SHORT

#define MAD_TO_SHORT (   f)
Value:
(f) >= MAD_F_ONE? SHRT_MAX :\
(f) <= -MAD_F_ONE? -SHRT_MAX : (signed short) ((f) >> (MAD_F_FRACBITS - 15))

Convert a sample value from libmad to a signed short.

◆ MP3DEC_MAX_FRAME

#define MP3DEC_MAX_FRAME   8192

Variable Documentation

◆ lsg_filter_cmd_com_mp3dec_user_data

const struct filter lsg_filter_cmd_com_mp3dec_user_data
Initial value:
= {
.open = mp3dec_open,
.close = mp3dec_close,
.post_monitor = mp3dec_post_monitor,
.execute = mp3dec_execute,
}
generic_filter_pre_monitor
void generic_filter_pre_monitor(struct sched *s, void *context)
Request a minimal timeout if not idle.
Definition: filter_common.c:181