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 | |
---|
14 | struct 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 | int got_it_running; |
---|
22 | }; |
---|
23 | |
---|
24 | int cf_vorbis_open(CODECFILTER_USERDATA_T * inst, int codec, |
---|
25 | struct roar_stream_server * info, |
---|
26 | struct roar_codecfilter * filter); |
---|
27 | |
---|
28 | int cf_vorbis_close(CODECFILTER_USERDATA_T inst); |
---|
29 | |
---|
30 | int cf_vorbis_read(CODECFILTER_USERDATA_T inst, char * buf, int len); |
---|
31 | |
---|
32 | int cf_vorbis_update_stream (struct codecfilter_vorbis_inst * self); |
---|
33 | |
---|
34 | #endif |
---|
35 | |
---|
36 | #endif |
---|
37 | |
---|
38 | //ll |
---|
Note: See
TracBrowser
for help on using the repository browser.