summaryrefslogtreecommitdiff
path: root/src/ogg.h
diff options
context:
space:
mode:
authorLorry <lorry@roadtrain.codethink.co.uk>2012-07-18 20:35:05 +0100
committerLorry <lorry@roadtrain.codethink.co.uk>2012-07-18 20:35:05 +0100
commitaceb1f30497619786f1827e4c65992b890a07410 (patch)
treece33ac9d0d076a8ec4f993e614cf71a4d5daa7e7 /src/ogg.h
downloadlibsndfile-aceb1f30497619786f1827e4c65992b890a07410.tar.gz
Tarball conversion
Diffstat (limited to 'src/ogg.h')
-rw-r--r--src/ogg.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/ogg.h b/src/ogg.h
new file mode 100644
index 0000000..88544bb
--- /dev/null
+++ b/src/ogg.h
@@ -0,0 +1,52 @@
+/*
+** Copyright (C) 2008-2011 Erik de Castro Lopo <erikd@mega-nerd.com>
+**
+** This program is free software ; you can redistribute it and/or modify
+** it under the terms of the GNU Lesser General Public License as published by
+** the Free Software Foundation ; either version 2.1 of the License, or
+** (at your option) any later version.
+**
+** This program is distributed in the hope that it will be useful,
+** but WITHOUT ANY WARRANTY ; without even the implied warranty of
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+** GNU Lesser General Public License for more details.
+**
+** You should have received a copy of the GNU Lesser General Public License
+** along with this program ; if not, write to the Free Software
+** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+*/
+
+#ifndef SF_SRC_OGG_H
+
+enum
+{ OGG_ANNODEX = 300,
+ OGG_ANXDATA,
+ OGG_FLAC,
+ OGG_FLAC0,
+ OGG_PCM,
+ OGG_SPEEX,
+ OGG_VORBIS,
+} ;
+
+typedef struct
+{ /* Sync and verify incoming physical bitstream */
+ ogg_sync_state osync ;
+ /* Take physical pages, weld into a logical stream of packets */
+ ogg_stream_state ostream ;
+ /* One Ogg bitstream page. Vorbis packets are inside */
+ ogg_page opage ;
+ /* One raw packet of data for decode */
+ ogg_packet opacket ;
+ int eos ;
+ int codec ;
+} OGG_PRIVATE ;
+
+
+#define readint(buf, base) (((buf [base + 3] << 24) & 0xff000000) | \
+ ((buf [base + 2] <<16) & 0xff0000) | \
+ ((buf [base + 1] << 8) & 0xff00) | \
+ (buf [base] & 0xff))
+
+
+
+#endif /* SF_SRC_OGG_H */