ScummVM API documentation
zork_avi_decoder.h
1/* ScummVM - Graphic Adventure Engine
2 *
3 * ScummVM is the legal property of its developers, whose names
4 * are too numerous to list here. Please refer to the COPYRIGHT
5 * file distributed with this source distribution.
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 *
20 *
21 */
22
23#ifndef ZORK_AVI_DECODER_H
24#define ZORK_AVI_DECODER_H
25
26#include "video/avi_decoder.h"
27#include "zvision/sound/zork_raw.h"
28
29namespace ZVision {
30
32public:
34
35 ~ZorkAVIDecoder() override {}
36
37private:
38 class ZorkAVIAudioTrack : public Video::AVIDecoder::AVIAudioTrack {
39 public:
40 ZorkAVIAudioTrack(const AVIStreamHeader &streamHeader, const PCMWaveFormat &waveFormat, Audio::Mixer::SoundType soundType);
41
42 void createAudioStream() override;
43 void queueSound(Common::SeekableReadStream *stream) override;
44 void resetStream() override;
45
46 private:
47 Audio::QueuingAudioStream *_queueStream;
48 RawChunkStream _decoder;
49 };
50
52
53private:
54 // Audio Codecs
55 enum {
56 kWaveFormatZorkPCM = 17 // special Zork PCM audio format (clashes with MS IMA ADPCM)
57 };
58};
59
60} // End of namespace ZVision
61
62#endif
SoundType
Definition: mixer.h:73
Definition: audiostream.h:370
Definition: stream.h:745
Definition: avi_decoder.h:287
Definition: avi_decoder.h:65
Definition: zork_raw.h:46
Definition: zork_avi_decoder.h:31
Definition: focus_list.h:27
Definition: avi_decoder.h:185
Definition: avi_decoder.h:140