Rev | Line | |
---|
[204] | 1 | //codecfilter_vorbis.h: |
---|
| 2 | |
---|
| 3 | #ifndef _CODECFILTER_VORBIS_H_ |
---|
| 4 | #define _CODECFILTER_VORBIS_H_ |
---|
| 5 | |
---|
| 6 | #include <roaraudio.h> |
---|
[362] | 7 | |
---|
| 8 | #ifdef ROAR_HAVE_LIBVORBISFILE |
---|
| 9 | |
---|
[205] | 10 | #include <vorbis/codec.h> |
---|
| 11 | #include <vorbis/vorbisfile.h> |
---|
[222] | 12 | #include <math.h> |
---|
[205] | 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 | }; |
---|
| 22 | |
---|
| 23 | int cf_vorbis_open(CODECFILTER_USERDATA_T * inst, int codec, |
---|
| 24 | struct roar_stream_server * info, |
---|
| 25 | struct roar_codecfilter * filter); |
---|
| 26 | |
---|
| 27 | int cf_vorbis_close(CODECFILTER_USERDATA_T inst); |
---|
| 28 | |
---|
| 29 | int cf_vorbis_read(CODECFILTER_USERDATA_T inst, char * buf, int len); |
---|
[204] | 30 | |
---|
[207] | 31 | int cf_vorbis_update_stream (struct codecfilter_vorbis_inst * self); |
---|
| 32 | |
---|
[204] | 33 | #endif |
---|
| 34 | |
---|
[362] | 35 | #endif |
---|
| 36 | |
---|
[204] | 37 | //ll |
---|
Note: See
TracBrowser
for help on using the repository browser.