source: roaraudio/roard/include/codecfilter_vorbis.h @ 382:46b315ef4767

Last change on this file since 382:46b315ef4767 was 382:46b315ef4767, checked in by phi, 16 years ago

CF Vorbis: fixed a read() on closed() and a close() before read() bug

File size: 839 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 int got_it_running;
22};
23
24int cf_vorbis_open(CODECFILTER_USERDATA_T * inst, int codec,
25                                            struct roar_stream_server * info,
26                                            struct roar_codecfilter   * filter);
27
28int cf_vorbis_close(CODECFILTER_USERDATA_T   inst);
29
30int cf_vorbis_read(CODECFILTER_USERDATA_T   inst, char * buf, int len);
31
32int 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.