mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01: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 rejectionSound = SoundCache.getSound(Script.resolvePath("./sounds/rejection.mp3"));
|
||||
var actionSound = SoundCache.getSound(Script.resolvePath("./sounds/action.mp3"));
|
||||
|
||||
that.confirmation = function() { //Play a confirmation sound
|
||||
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;
|
||||
})();
|
||||
|
|
Loading…
Reference in a new issue