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 
29 namespace ZVision {
30 
32 public:
33  ZorkAVIDecoder() {}
34 
35  ~ZorkAVIDecoder() override {}
36 
37 private:
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 
53 private:
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
Definition: avi_decoder.h:64
Definition: zork_avi_decoder.h:31
Definition: avi_decoder.h:184
Definition: stream.h:745
Definition: clock.h:29
Definition: avi_decoder.h:286
SoundType
Definition: mixer.h:62
Definition: avi_decoder.h:139
Definition: zork_raw.h:46
Definition: audiostream.h:370