/*
- * Copyright (C) 2005-2006 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2005-2007 Andre Noll <maan@systemlinux.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
#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
*
+ * \param f pointer to the filter struct to initialize
+ *
* \sa filter::init
*/
void mp3dec_init(struct filter *f)