ScummVM API documentation
wave.h
Go to the documentation of this file.
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 
50 #ifndef AUDIO_WAVE_H
51 #define AUDIO_WAVE_H
52 
53 #include "common/scummsys.h"
54 #include "common/types.h"
55 
56 namespace Common {
57 class SeekableReadStream;
58 }
59 
60 namespace Audio {
61 
62 class SeekableAudioStream;
63 
71 extern bool loadWAVFromStream(
73  int &size,
74  int &rate,
75  byte &flags,
76  uint16 *wavType = 0,
77  int *blockAlign = 0,
78  int *samplesPerBlock = 0);
79 
91 SeekableAudioStream *makeWAVStream(
93  DisposeAfterUse::Flag disposeAfterUse);
94 
95 } // End of namespace Audio
96 
97 #endif
Definition: stream.h:745
bool loadWAVFromStream(Common::SeekableReadStream &stream, int &size, int &rate, byte &flags, uint16 *wavType=0, int *blockAlign=0, int *samplesPerBlock=0)
Definition: algorithm.h:29
SeekableAudioStream * makeWAVStream(Common::SeekableReadStream *stream, DisposeAfterUse::Flag disposeAfterUse)
Definition: system.h:37