source: roaraudio/roard/include/codecfilter_vorbis.h @ 362:b13b2abea6f0

Last change on this file since 362:b13b2abea6f0 was 362:b13b2abea6f0, checked in by phi, 16 years ago

only compile vorbis stuff if we have libvorbisfile

File size: 818 bytes
Line 
1//codecfilter_vorbis.h:
2
3#ifndef _CODECFILTER_VORBIS_H_
4#define _CODECFILTER_VORBIS_H_
5
6#include <roaraudio.h>
7
8#ifdef ROAR_HAVE_LIBVORBISFILE
9
10#include <vorbis/codec.h>
11#include <vorbis/vorbisfile.h>
12#include <math.h>
13
14struct codecfilter_vorbis_inst {
15 int current_section;
16 int last_section;
17 int opened;
18 FILE * in;
19 struct roar_stream_server * stream;
20 OggVorbis_File vf;
21};
22
23int cf_vorbis_open(CODECFILTER_USERDATA_T * inst, int codec,
24                                            struct roar_stream_server * info,
25                                            struct roar_codecfilter   * filter);
26
27int cf_vorbis_close(CODECFILTER_USERDATA_T   inst);
28
29int cf_vorbis_read(CODECFILTER_USERDATA_T   inst, char * buf, int len);
30
31int cf_vorbis_update_stream (struct codecfilter_vorbis_inst * self);
32
33#endif
34
35#endif
36
37//ll
Note: See TracBrowser for help on using the repository browser.