aboutsummaryrefslogtreecommitdiff
path: root/audio/decoders/ac3.h
diff options
context:
space:
mode:
authorTorbjörn Andersson2018-05-11 13:48:01 +0200
committerThierry Crozat2018-11-04 22:33:22 +0100
commit6705b6df9e85beb61f9824a65475cc8f26dcdc34 (patch)
tree37f28dee5383d70fa2b944cdfbf78f6212e20c6c /audio/decoders/ac3.h
parentef70af5e991e0c60465385c9a84bdefdd54f9bd2 (diff)
downloadscummvm-rg350-6705b6df9e85beb61f9824a65475cc8f26dcdc34.tar.gz
scummvm-rg350-6705b6df9e85beb61f9824a65475cc8f26dcdc34.tar.bz2
scummvm-rg350-6705b6df9e85beb61f9824a65475cc8f26dcdc34.zip
AUDIO: Add a separate AC-3 decoder
This code comes from clone2727's now defunct (?) ac3 branch.
Diffstat (limited to 'audio/decoders/ac3.h')
-rw-r--r--audio/decoders/ac3.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/audio/decoders/ac3.h b/audio/decoders/ac3.h
new file mode 100644
index 0000000000..a51107a410
--- /dev/null
+++ b/audio/decoders/ac3.h
@@ -0,0 +1,51 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+#ifndef AUDIO_DECODERS_AC3_H
+#define AUDIO_DECODERS_AC3_H
+
+#include "common/scummsys.h"
+
+#ifdef USE_A52
+
+namespace Common {
+class SeekableReadStream;
+} // End of namespace Common
+
+namespace Audio {
+
+class PacketizedAudioStream;
+
+/**
+ * Create a PacketizedAudioStream that decodes AC-3 sound
+ *
+ * @param firstPacket The stream containing the first packet of data
+ * @return A new PacketizedAudioStream, or NULL on error
+ */
+PacketizedAudioStream *makeAC3Stream(Common::SeekableReadStream &firstPacket);
+
+} // End of namespace Audio
+
+#endif
+
+#endif
+