From f0315f7f77d03a5accc368c4bb35067eb15e6d04 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Mon, 9 May 2016 01:36:22 +0200 Subject: [PATCH] Reduce sound effect volume by 25% except for delete -- which this pr just makes consistent --- renderer/lib/sound.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/renderer/lib/sound.js b/renderer/lib/sound.js index 33636abb..d63ad46c 100644 --- a/renderer/lib/sound.js +++ b/renderer/lib/sound.js @@ -6,41 +6,43 @@ module.exports = { var config = require('../../config') var path = require('path') +var VOLUME = 0.15 + /* Cache of Audio elements, for instant playback */ var cache = {} var sounds = { ADD: { url: 'file://' + path.join(config.STATIC_PATH, 'sound', 'add.wav'), - volume: 0.2 + volume: VOLUME }, DELETE: { url: 'file://' + path.join(config.STATIC_PATH, 'sound', 'delete.wav'), - volume: 0.1 + volume: VOLUME }, DISABLE: { url: 'file://' + path.join(config.STATIC_PATH, 'sound', 'disable.wav'), - volume: 0.2 + volume: VOLUME }, DONE: { url: 'file://' + path.join(config.STATIC_PATH, 'sound', 'done.wav'), - volume: 0.2 + volume: VOLUME }, ENABLE: { url: 'file://' + path.join(config.STATIC_PATH, 'sound', 'enable.wav'), - volume: 0.2 + volume: VOLUME }, ERROR: { url: 'file://' + path.join(config.STATIC_PATH, 'sound', 'error.wav'), - volume: 0.2 + volume: VOLUME }, PLAY: { url: 'file://' + path.join(config.STATIC_PATH, 'sound', 'play.wav'), - volume: 0.2 + volume: VOLUME }, STARTUP: { url: 'file://' + path.join(config.STATIC_PATH, 'sound', 'startup.wav'), - volume: 0.4 + volume: VOLUME * 2 } }