sound: Reduce volume even further
This commit is contained in:
@@ -6,7 +6,7 @@ const config = require('../../config')
|
|||||||
const {InvalidSoundNameError} = require('./errors')
|
const {InvalidSoundNameError} = require('./errors')
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
|
|
||||||
const VOLUME = 0.3
|
const VOLUME = 0.25
|
||||||
|
|
||||||
/* Cache of Audio elements, for instant playback */
|
/* Cache of Audio elements, for instant playback */
|
||||||
const cache = {}
|
const cache = {}
|
||||||
@@ -22,7 +22,7 @@ const sounds = {
|
|||||||
},
|
},
|
||||||
DISABLE: {
|
DISABLE: {
|
||||||
url: 'file://' + path.join(config.STATIC_PATH, 'sound', 'disable.wav'),
|
url: 'file://' + path.join(config.STATIC_PATH, 'sound', 'disable.wav'),
|
||||||
volume: VOLUME
|
volume: VOLUME * 0.5
|
||||||
},
|
},
|
||||||
DONE: {
|
DONE: {
|
||||||
url: 'file://' + path.join(config.STATIC_PATH, 'sound', 'done.wav'),
|
url: 'file://' + path.join(config.STATIC_PATH, 'sound', 'done.wav'),
|
||||||
@@ -30,7 +30,7 @@ const sounds = {
|
|||||||
},
|
},
|
||||||
ENABLE: {
|
ENABLE: {
|
||||||
url: 'file://' + path.join(config.STATIC_PATH, 'sound', 'enable.wav'),
|
url: 'file://' + path.join(config.STATIC_PATH, 'sound', 'enable.wav'),
|
||||||
volume: VOLUME
|
volume: VOLUME * 0.5
|
||||||
},
|
},
|
||||||
ERROR: {
|
ERROR: {
|
||||||
url: 'file://' + path.join(config.STATIC_PATH, 'sound', 'error.wav'),
|
url: 'file://' + path.join(config.STATIC_PATH, 'sound', 'error.wav'),
|
||||||
@@ -38,7 +38,7 @@ const sounds = {
|
|||||||
},
|
},
|
||||||
PLAY: {
|
PLAY: {
|
||||||
url: 'file://' + path.join(config.STATIC_PATH, 'sound', 'play.wav'),
|
url: 'file://' + path.join(config.STATIC_PATH, 'sound', 'play.wav'),
|
||||||
volume: VOLUME * 1.25
|
volume: VOLUME
|
||||||
},
|
},
|
||||||
STARTUP: {
|
STARTUP: {
|
||||||
url: 'file://' + path.join(config.STATIC_PATH, 'sound', 'startup.wav'),
|
url: 'file://' + path.join(config.STATIC_PATH, 'sound', 'startup.wav'),
|
||||||
|
|||||||
Reference in New Issue
Block a user