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; |
---|
[382] | 21 | int got_it_running; |
---|
[205] | 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); |
---|
[204] | 31 | |
---|
[207] | 32 | int cf_vorbis_update_stream (struct codecfilter_vorbis_inst * self); |
---|
| 33 | |
---|
[204] | 34 | #endif |
---|
| 35 | |
---|
[362] | 36 | #endif |
---|
| 37 | |
---|
[204] | 38 | //ll |
---|
Note: See
TracBrowser
for help on using the repository browser.