FS2_Open
Open source remastering of the Freespace 2 engine
oggplayer.h
Go to the documentation of this file.
1 
2 
3 #ifndef _OGGPLAYER_H
4 #define _OGGPLAYER_H
5 
6 #include "globalincs/pstypes.h"
7 
8 #include "theora/theora.h"
9 #include "vorbis/codec.h"
10 
11 struct CFILE;
12 
13 // structure for maintaining info on a THEORAFILE stream
14 typedef struct THEORAFILE
15 {
19 
20  ogg_sync_state osyncstate;
21  ogg_page opage;
22  ogg_packet opacket;
23  ogg_stream_state v_osstate;
24  ogg_stream_state t_osstate;
25 
26  theora_info tinfo;
27  theora_comment tcomment;
28  theora_state tstate;
29 
30  vorbis_info vinfo;
31  vorbis_dsp_state vstate;
32  vorbis_block vblock;
33  vorbis_comment vcomment;
34 } THEORAFILE;
35 
36 void theora_play(THEORAFILE *movie);
38 void theora_close(THEORAFILE *movie);
39 
40 #endif
ubyte theora_p
Definition: oggplayer.h:17
ogg_stream_state v_osstate
Definition: oggplayer.h:23
ogg_page opage
Definition: oggplayer.h:21
vorbis_info vinfo
Definition: oggplayer.h:30
Definition: cfile.h:28
void theora_close(THEORAFILE *movie)
Definition: oggplayer.cpp:697
struct THEORAFILE THEORAFILE
theora_state tstate
Definition: oggplayer.h:28
CFILE * cfp
Definition: oggplayer.h:16
ogg_stream_state t_osstate
Definition: oggplayer.h:24
char * filename
ogg_sync_state osyncstate
Definition: oggplayer.h:20
vorbis_comment vcomment
Definition: oggplayer.h:33
vorbis_block vblock
Definition: oggplayer.h:32
unsigned char ubyte
Definition: pstypes.h:62
THEORAFILE * theora_open(char *filename)
Definition: oggplayer.cpp:738
theora_comment tcomment
Definition: oggplayer.h:27
ogg_packet opacket
Definition: oggplayer.h:22
vorbis_dsp_state vstate
Definition: oggplayer.h:31
theora_info tinfo
Definition: oggplayer.h:26
ubyte vorbis_p
Definition: oggplayer.h:18
void theora_play(THEORAFILE *movie)
Definition: oggplayer.cpp:924