view src/audacious/xconvert.h @ 4116:5853d43e539a

remember filter entry in jtf dialog is extremely useful when jtf deals with large playlist. now this feature is configurable.
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Tue, 25 Dec 2007 19:15:44 +0900
parents e97cee2185ce
children
line wrap: on
line source

/*
 *  Copyright (C) 2003  Haavard Kvaalen <havardk@xmms.org>
 *
 *  Licensed under GNU GPL version 3.
 */

#ifndef _AUDACIOUS_XCONVERT_H
#define _AUDACIOUS_XCONVERT_H

#include <audacious/plugin.h>

struct xmms_convert_buffers;

struct xmms_convert_buffers *xmms_convert_buffers_new(void);
/*
 * Free the data assosiated with the buffers, without destroying the
 * context.  The context can be reused.
 */
void xmms_convert_buffers_free(struct xmms_convert_buffers *buf);
void xmms_convert_buffers_destroy(struct xmms_convert_buffers *buf);


typedef int (*convert_func_t) (struct xmms_convert_buffers * buf,
                               void **data, int length);
typedef int (*convert_channel_func_t) (struct xmms_convert_buffers * buf,
                                       void **data, int length);
typedef int (*convert_freq_func_t) (struct xmms_convert_buffers * buf,
                                    void **data, int length, int ifreq,
                                    int ofreq);


convert_func_t xmms_convert_get_func(AFormat output, AFormat input);
convert_channel_func_t xmms_convert_get_channel_func(AFormat fmt,
                                                     int output,
                                                     int input);
convert_freq_func_t xmms_convert_get_frequency_func(AFormat fmt,
                                                    int channels);

#endif