diff options
author | atmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-09-01 19:44:49 +0000 |
---|---|---|
committer | atmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-09-01 19:44:49 +0000 |
commit | aada0e47d273ab4ac42fcd44d01209aa092cf790 (patch) | |
tree | 445baeffb0414739c3e1d6a7a812032466f1b126 /stheader.h | |
parent | 5d0b354e7ad9c55f5e0939a0ef62b036f0b85b2e (diff) | |
download | mpv-aada0e47d273ab4ac42fcd44d01209aa092cf790.tar.bz2 mpv-aada0e47d273ab4ac42fcd44d01209aa092cf790.tar.xz |
OggVorbis support, ALPHA state!
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1829 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stheader.h')
-rw-r--r-- | stheader.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/stheader.h b/stheader.h index 851e79b4e4..dbc3b2b77c 100644 --- a/stheader.h +++ b/stheader.h @@ -7,6 +7,24 @@ typedef struct { } codecinfo_t; */ +#ifdef HAVE_OGGVORBIS +#include <math.h> +#include <vorbis/codec.h> +typedef struct { + ogg_sync_state oy; /* sync and verify incoming physical bitstream */ + ogg_stream_state os; /* take physical pages, weld into a logical + stream of packets */ + ogg_page og; /* one Ogg bitstream page. Vorbis packets are inside */ + ogg_packet op; /* one raw packet of data for decode */ + + vorbis_info vi; /* struct that stores all the static vorbis bitstream + settings */ + vorbis_comment vc; /* struct that stores all the bitstream user comments */ + vorbis_dsp_state vd; /* central working state for the packet->PCM decoder */ + vorbis_block vb; /* local working space for packet->PCM decode */ +} ov_struct_t; +#endif + typedef struct { demux_stream_t *ds; unsigned int format; @@ -40,6 +58,9 @@ typedef struct { // ac3_frame_t *ac3_frame; void* ac3_frame; int pcm_bswap; +#ifdef HAVE_OGGVORBIS + ov_struct_t *ov; // should be assigned on init +#endif } sh_audio_t; typedef struct { |