diff options
author | johndoe123 | 2012-10-01 10:40:10 +0000 |
---|---|---|
committer | Willem Jan Palenstijn | 2013-05-08 20:43:44 +0200 |
commit | 0a1a228a883b3c13915a9e83886464b85ed2c81e (patch) | |
tree | 976d9ef67d1dbb07d25d8e31777ddd90bbdcbf3d /engines/neverhood/entity.cpp | |
parent | 0c272631df66fc574e2d1bb67d4aa22f434dd178 (diff) | |
download | scummvm-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.cpp | 4 |
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) |