mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 19:21:16 +02:00
Minor Code Adjustment
Minor Code Adjustment
This commit is contained in:
parent
75d6b2c2e5
commit
f6aaa000a7
1 changed files with 5 additions and 5 deletions
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
audioFeedback = (function() {
|
audioFeedback = (function() {
|
||||||
var that = {};
|
var that = {};
|
||||||
|
|
||||||
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"));
|
var actionSound = SoundCache.getSound(Script.resolvePath("./sounds/action.mp3"));
|
||||||
|
@ -26,15 +26,15 @@ audioFeedback = (function() {
|
||||||
|
|
||||||
that.rejection = function() { //Play a rejection sound
|
that.rejection = function() { //Play a rejection sound
|
||||||
var injector = Audio.playSound(rejectionSound, {
|
var injector = Audio.playSound(rejectionSound, {
|
||||||
"volume": 0.3,
|
"volume": 0.3,
|
||||||
"localOnly": true
|
"localOnly": true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
that.action = function() { //Play an action sound
|
that.action = function() { //Play an action sound
|
||||||
var injector = Audio.playSound(actionSound, {
|
var injector = Audio.playSound(actionSound, {
|
||||||
"volume": 0.3,
|
"volume": 0.3,
|
||||||
"localOnly": true
|
"localOnly": true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue