aboutsummaryrefslogtreecommitdiff
path: root/engines/neverhood/entity.cpp
diff options
context:
space:
mode:
authorjohndoe1232012-10-01 10:40:10 +0000
committerWillem Jan Palenstijn2013-05-08 20:43:44 +0200
commit0a1a228a883b3c13915a9e83886464b85ed2c81e (patch)
tree976d9ef67d1dbb07d25d8e31777ddd90bbdcbf3d /engines/neverhood/entity.cpp
parent0c272631df66fc574e2d1bb67d4aa22f434dd178 (diff)
downloadscummvm-rg350-0a1a228a883b3c13915a9e83886464b85ed2c81e.tar.gz
scummvm-rg350-0a1a228a883b3c13915a9e83886464b85ed2c81e.tar.bz2
scummvm-rg350-0a1a228a883b3c13915a9e83886464b85ed2c81e.zip
NEVERHOOD: Change sound stuff in Module1700
- Add Entity::setSoundVolume
Diffstat (limited to 'engines/neverhood/entity.cpp')
-rw-r--r--engines/neverhood/entity.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/neverhood/entity.cpp b/engines/neverhood/entity.cpp
index d7d78969d2..0cb906acbd 100644
--- a/engines/neverhood/entity.cpp
+++ b/engines/neverhood/entity.cpp
@@ -142,6 +142,10 @@ bool Entity::isSoundPlaying(uint index) {
return getSoundResource(index)->isPlaying();
}
+void Entity::setSoundVolume(uint index, int volume) {
+ getSoundResource(index)->setVolume(volume);
+}
+
void Entity::deleteSoundResources() {
if (_soundResources) {
for (uint i = 0; i < kMaxSoundResources; ++i)