2009-12-29 23:18:24 +00:00
|
|
|
/* 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.
|
|
|
|
*
|
2021-12-26 17:47:58 +00:00
|
|
|
* 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 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
2014-02-18 01:34:17 +00:00
|
|
|
*
|
2009-12-29 23:18:24 +00:00
|
|
|
* 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.
|
2014-02-18 01:34:17 +00:00
|
|
|
*
|
2009-12-29 23:18:24 +00:00
|
|
|
* You should have received a copy of the GNU General Public License
|
2021-12-26 17:47:58 +00:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2009-12-29 23:18:24 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2010-05-23 18:33:55 +00:00
|
|
|
// Only compile if Mohawk is enabled or if we're building dynamic modules
|
|
|
|
#if defined(ENABLE_MOHAWK) || defined(DYNAMIC_MODULES)
|
|
|
|
|
2011-04-07 23:29:49 +00:00
|
|
|
#ifndef AUDIO_QDM2_H
|
|
|
|
#define AUDIO_QDM2_H
|
2009-12-29 23:18:24 +00:00
|
|
|
|
2011-07-10 19:46:35 +00:00
|
|
|
#include "common/types.h"
|
|
|
|
|
2010-05-23 19:54:17 +00:00
|
|
|
namespace Common {
|
2011-04-25 19:29:26 +00:00
|
|
|
class SeekableReadStream;
|
2010-05-23 19:54:17 +00:00
|
|
|
}
|
2009-12-29 23:18:24 +00:00
|
|
|
|
2010-05-23 18:33:55 +00:00
|
|
|
namespace Audio {
|
2010-05-23 21:41:13 +00:00
|
|
|
|
2011-07-10 19:46:35 +00:00
|
|
|
class Codec;
|
2009-12-29 23:18:24 +00:00
|
|
|
|
2010-05-23 19:54:17 +00:00
|
|
|
/**
|
2011-07-10 19:46:35 +00:00
|
|
|
* Create a new Codec from the QDM2 data in the given stream.
|
2010-05-23 19:54:17 +00:00
|
|
|
*
|
2011-07-10 19:46:35 +00:00
|
|
|
* @param extraData the QuickTime extra data stream
|
|
|
|
* @param disposeExtraData the QuickTime extra data stream
|
|
|
|
* @return a new Codec, or NULL, if an error occurred
|
2010-05-23 19:54:17 +00:00
|
|
|
*/
|
2011-07-10 19:46:35 +00:00
|
|
|
Codec *makeQDM2Decoder(Common::SeekableReadStream *extraData,
|
2021-04-15 19:20:04 +00:00
|
|
|
DisposeAfterUse::Flag disposeExtraData = DisposeAfterUse::NO);
|
2009-12-29 23:18:24 +00:00
|
|
|
|
2011-04-07 23:29:49 +00:00
|
|
|
} // End of namespace Audio
|
2010-05-23 18:33:55 +00:00
|
|
|
|
2011-04-07 23:29:49 +00:00
|
|
|
#endif // AUDIO_QDM2_H
|
2010-05-23 18:33:55 +00:00
|
|
|
#endif // Mohawk/Plugins guard
|