mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 08:16:21 +02:00
Add "action" sound.
Add "action" sound.
This commit is contained in:
parent
79b34ae541
commit
adf4249b32
1 changed files with 8 additions and 0 deletions
|
@ -15,6 +15,7 @@ audioFeedback = (function() {
|
||||||
|
|
||||||
var confirmationSound = SoundCache.getSound(Script.resolvePath("./sounds/confirmation.mp3"));
|
var confirmationSound = SoundCache.getSound(Script.resolvePath("./sounds/confirmation.mp3"));
|
||||||
var rejectionSound = SoundCache.getSound(Script.resolvePath("./sounds/rejection.mp3"));
|
var rejectionSound = SoundCache.getSound(Script.resolvePath("./sounds/rejection.mp3"));
|
||||||
|
var actionSound = SoundCache.getSound(Script.resolvePath("./sounds/action.mp3"));
|
||||||
|
|
||||||
that.confirmation = function() { //Play a confirmation sound
|
that.confirmation = function() { //Play a confirmation sound
|
||||||
var injector = Audio.playSound(confirmationSound, {
|
var injector = Audio.playSound(confirmationSound, {
|
||||||
|
@ -30,5 +31,12 @@ audioFeedback = (function() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
that.action = function() { //Play an action sound
|
||||||
|
var injector = Audio.playSound(actionSound, {
|
||||||
|
"volume": 0.3,
|
||||||
|
"localOnly": true
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
return that;
|
return that;
|
||||||
})();
|
})();
|
||||||
|
|
Loading…
Reference in a new issue