comparison stheader.h @ 1828:60afe3421c04

OggVorbis support, ALPHA state!
author atmos4
date Sat, 01 Sep 2001 19:44:49 +0000
parents cd77b8e28f82
children 624df8ea0e0e
comparison
equal deleted inserted replaced
1827:9d62dcf8c7c5 1828:60afe3421c04
4 typedef struct { 4 typedef struct {
5 int driver; 5 int driver;
6 // codec descriptor from codec.conf 6 // codec descriptor from codec.conf
7 } codecinfo_t; 7 } codecinfo_t;
8 */ 8 */
9
10 #ifdef HAVE_OGGVORBIS
11 #include <math.h>
12 #include <vorbis/codec.h>
13 typedef struct {
14 ogg_sync_state oy; /* sync and verify incoming physical bitstream */
15 ogg_stream_state os; /* take physical pages, weld into a logical
16 stream of packets */
17 ogg_page og; /* one Ogg bitstream page. Vorbis packets are inside */
18 ogg_packet op; /* one raw packet of data for decode */
19
20 vorbis_info vi; /* struct that stores all the static vorbis bitstream
21 settings */
22 vorbis_comment vc; /* struct that stores all the bitstream user comments */
23 vorbis_dsp_state vd; /* central working state for the packet->PCM decoder */
24 vorbis_block vb; /* local working space for packet->PCM decode */
25 } ov_struct_t;
26 #endif
9 27
10 typedef struct { 28 typedef struct {
11 demux_stream_t *ds; 29 demux_stream_t *ds;
12 unsigned int format; 30 unsigned int format;
13 codecs_t *codec; 31 codecs_t *codec;
38 int audio_out_minsize; 56 int audio_out_minsize;
39 // other codecs: 57 // other codecs:
40 // ac3_frame_t *ac3_frame; 58 // ac3_frame_t *ac3_frame;
41 void* ac3_frame; 59 void* ac3_frame;
42 int pcm_bswap; 60 int pcm_bswap;
61 #ifdef HAVE_OGGVORBIS
62 ov_struct_t *ov; // should be assigned on init
63 #endif
43 } sh_audio_t; 64 } sh_audio_t;
44 65
45 typedef struct { 66 typedef struct {
46 demux_stream_t *ds; 67 demux_stream_t *ds;
47 unsigned int format; 68 unsigned int format;