source: roaraudio/roard/include/codecfilter.h @ 321:a0528eb5cc46

Last change on this file since 321:a0528eb5cc46 was 204:4ccaf07e3a3f, checked in by phi, 16 years ago

added codecfilter_vorbis.[ch]

File size: 1.5 KB
RevLine 
[169]1//codecfilter.h:
2
3#ifndef _CODECFILTER_H_
4#define _CODECFILTER_H_
5
6#include <roaraudio.h>
7
[170]8#define CODECFILTER_USERDATA_T void *
9
[195]10struct roar_stream_server;
[170]11
12struct roar_codecfilter {
[176]13 int    codec;
[170]14 char * name;
15 char * desc;
[171]16 char * options;
[193]17 int (*open )(CODECFILTER_USERDATA_T * inst, int codec,
[171]18                                             struct roar_stream_server * info,
19                                             struct roar_codecfilter   * filter);
[170]20 int (*close)(CODECFILTER_USERDATA_T   inst);
21 int (*pause)(CODECFILTER_USERDATA_T   inst, int newstate);
22 int (*write)(CODECFILTER_USERDATA_T   inst, char * buf, int len);
23 int (*read )(CODECFILTER_USERDATA_T   inst, char * buf, int len);
24 int (*flush)(CODECFILTER_USERDATA_T   inst);
25};
26
[172]27
28#include "codecfilter_cmd.h"
[204]29#ifdef ROAR_HAVE_LIBVORBISFILE
30#include "codecfilter_vorbis.h"
31#endif
[172]32
33
[170]34void print_codecfilterlist (void);
35
36int codecfilter_open (CODECFILTER_USERDATA_T * inst,
37                 int * codecfilter_id, char * codecfilter /* NOTE: this is not part of struct roar_codecfilter's def! */,
[193]38                 int codec, struct roar_stream_server * info);
[170]39int codecfilter_close(CODECFILTER_USERDATA_T   inst, int codecfilter);
40int codecfilter_pause(CODECFILTER_USERDATA_T   inst, int codecfilter, int newstate);
41int codecfilter_write(CODECFILTER_USERDATA_T   inst, int codecfilter, char * buf, int len);
42int codecfilter_read (CODECFILTER_USERDATA_T   inst, int codecfilter, char * buf, int len);
43int codecfilter_flush(CODECFILTER_USERDATA_T   inst, int codecfilter);
44
45
[169]46#endif
47
48//ll
Note: See TracBrowser for help on using the repository browser.