ScummVM API documentation
sound_common.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 * Additional copyright for this file:
8 * Copyright (C) 1999-2000 Revolution Software Ltd.
9 * This code is based on source code created by Revolution Software,
10 * used with permission.
11 *
12 * This program is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation, either version 3 of the License, or
15 * (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program. If not, see <http://www.gnu.org/licenses/>.
24 *
25 */
26
27#ifndef ICB_SOUNDCOMMON_H__INCLUDED_
28#define ICB_SOUNDCOMMON_H__INCLUDED_
29
30#include "engines/icb/sound/direct_sound.h"
31
32#include "common/stream.h"
33
34namespace ICB {
35
36typedef struct _wavHeader {
37 char riff[4];
38 uint32 fileLength;
39 char wavID[4];
40 char format[4];
41 uint32 formatLen;
42 uint16 formatTag;
43 uint16 channels;
44 uint32 samplesPerSec;
45 uint32 avgBytesPerSec;
46 uint16 blockAlign;
47 uint16 bitsPerSample;
48
50
51// Common code between the three sound managers
52bool8 openWav(Common::SeekableReadStream *filePtr, _wavHeader &header, uint32 &length, uint32 &byteOffsetInCluster, int32 &lengthInCycles);
53
54} // End of namespace ICB
55
56#endif
Definition: stream.h:745
Definition: sound_common.h:36