#define MP3_OUTBUF_SIZE 128 * 1024
/** \cond a helper macro */
-#define MAD_TO_SHORT(f) (f) >= MAD_F_ONE? SHRT_MAX :\
+#define MAD_TO_SHORT(f) (f) >= MAD_F_ONE? SHRT_MAX :\
(f) <= -MAD_F_ONE? -SHRT_MAX : (signed short) ((f) >> (MAD_F_FRACBITS - 15))
/** \endcond */
struct mad_synth synth;
};
-/* TODO: Convert all input if possible */
static ssize_t mp3dec(char *inbuffer, size_t len, struct filter_node *fn)
{
int i, ret;
fn->bufsize = MP3_OUTBUF_SIZE;
fn->buf = para_calloc(fn->bufsize);
}
+
/**
* the init function of the mp3dec filter
*