aboutsummaryrefslogtreecommitdiff
path: root/sound/aiff.h
diff options
context:
space:
mode:
authorTorbjörn Andersson2007-04-09 09:58:41 +0000
committerTorbjörn Andersson2007-04-09 09:58:41 +0000
commit2d209264c9e46aea66daad8fba3cfff320c5f888 (patch)
tree8751bc1e54d45ec3c9b2dd052d925e5f3caf3733 /sound/aiff.h
parent53bdc1e0cf1f1c688c2e9cd8c486ff1435733081 (diff)
downloadscummvm-rg350-2d209264c9e46aea66daad8fba3cfff320c5f888.tar.gz
scummvm-rg350-2d209264c9e46aea66daad8fba3cfff320c5f888.tar.bz2
scummvm-rg350-2d209264c9e46aea66daad8fba3cfff320c5f888.zip
Implemented enough of AIFF to play the music from the Broken Sword 1 demo. At
least as far as I tried it which, admittedly, wasn't very far. svn-id: r26423
Diffstat (limited to 'sound/aiff.h')
-rw-r--r--sound/aiff.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/sound/aiff.h b/sound/aiff.h
new file mode 100644
index 0000000000..d7e209ac3d
--- /dev/null
+++ b/sound/aiff.h
@@ -0,0 +1,54 @@
+/* ScummVM - Scumm Interpreter
+ * Copyright (C) 2007 The ScummVM project
+ *
+ * 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.
+ *
+ * $URL$
+ * $Id: wave.h 22231 2006-04-29 22:33:31Z fingolfin $
+ *
+ */
+
+#ifndef SOUND_AIFF_H
+#define SOUND_AIFF_H
+
+#include "common/stdafx.h"
+#include "common/scummsys.h"
+
+namespace Common { class SeekableReadStream; }
+
+namespace Audio {
+
+class AudioStream;
+
+/**
+ * Try to load an AIFF from the given seekable stream. Returns true if
+ * successful. In that case, the stream's seek position will be set to the
+ * start of the audio data, and size, rate and flags contain information
+ * necessary for playback. Currently this function only supports uncompressed
+ * raw PCM data as well as IMA ADPCM.
+ */
+extern bool loadAIFFFromStream(Common::SeekableReadStream &stream, int &size, int &rate, byte &flags);
+
+/**
+ * Try to load an AIFF from the given seekable stream and create an AudioStream
+ * from that data.
+ *
+ * This function uses loadAIFFFromStream() internally.
+ */
+AudioStream *makeAIFFStream(Common::SeekableReadStream &stream);
+
+} // End of namespace Audio
+
+#endif