aboutsummaryrefslogtreecommitdiff
path: root/engines/neverhood/entity.cpp
diff options
context:
space:
mode:
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)