aboutsummaryrefslogtreecommitdiff
path: root/engines/sludge/sound_nosound.cpp
blob: 46b696316666e4c65f38ab13df7f0a4fdbf582dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
/* 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.
 *
 * 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 2
 * of the License, or (at your option) any later version.
 *
 * 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.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 *
 */

#include "sludge/allfiles.h"
#include "sludge/newfatal.h"
#include "sludge/sound.h"
#include "sludge/moreio.h"
#include "sludge/fileset.h"

namespace Sludge {

bool soundOK = false;

int defVol = 128;
int defSoundVol = 255;

#if 0
char *loadEntireFileToMemory(FILE *inputFile, uint32 size) {
	char *allData = new char[size];
	if (! allData) return NULL;
	fread(allData, size, 1, inputFile);
	finishAccess();

	return allData;
}
#endif

int findInSoundCache(int a) {
//#pragma unused(a)
	return -1;
}

void stopMOD(int i) {
//#pragma unused(i)
}

void huntKillSound(int filenum) {
//#pragma unused(filenum)
}

void huntKillFreeSound(int filenum) {
//#pragma unused(filenum)
}

bool initSoundStuff(HWND hwnd) {
//	#pragma unused(hwnd)
	return false;
}

void killSoundStuff() {
}

bool playMOD(int f, int a, int fromTrack) {
//#pragma unused (f,a,fromTrack)
	return true;
}

void setMusicVolume(int a, int v) {
//#pragma unused (a,v)
}

void setDefaultMusicVolume(int v) {
	defVol = v;
}

void setSoundVolume(int a, int v) {
//#pragma unused (a,v)
}

bool stillPlayingSound(int ch) {
//#pragma unused (ch)
	return false;
}

void setSoundLoop(int a, int s, int e) {
//#pragma unused (a,s,e)
}

void setDefaultSoundVolume(int v) {
	defSoundVol = v;
}

bool forceRemoveSound() {
	return 0;
}

int cacheSound(int f) {
//#pragma unused (f)
	return 0;
}

bool startSound(int f, bool loopy) {
//#pragma unused (f,loopy)
	return true;
}

void saveSounds(Common::WriteStream *stream) {
	stream->writeByte(0);
	stream->writeUint16BE(defSoundVol);
	stream->writeUint16BE(defVol);
}

void loadSounds(Common::SeekableReadStream *stream) {
	while (stream->readByte()) {
		stream->readUint16BE();
		stream->readUint16BE();
	}

	defSoundVol = stream->readUint16BE();
	defVol = stream->readUint16BE();
}

bool getSoundCacheStack(stackHandler *sH) {
//#pragma unused (sH)
	return true;
}

} // End of namespace Sludge