From 8f62d3e4d3ab45b2236fd570ee8c45494682af02 Mon Sep 17 00:00:00 2001 From: R Steiner Date: Tue, 31 Oct 2017 15:49:21 -0400 Subject: [PATCH 1/2] Add option to change volume of stimuli. Add volume option to headphoneCheckConfig. Set volume before playing sound. Add volume option setting to calibration sound. Delete comments. --- HeadphoneCheck.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/HeadphoneCheck.js b/HeadphoneCheck.js index aa6a8d4..ad014d2 100644 --- a/HeadphoneCheck.js +++ b/HeadphoneCheck.js @@ -29,6 +29,7 @@ Contact Ray Gonzalez raygon@mit.edu or Kevin J. P. Woods kwoods@mit.edu // NOTE: DON'T CHANGE VALUES HERE. Use a similar config object to // override any default values you wish to change. var headphoneCheckDefaultConfig = {jsonPath: undefined, + audioVolume: 1.0, totalTrials: 6, trialsPerPage: 3, correctThreshold: 5/6, @@ -306,9 +307,9 @@ Contact Ray Gonzalez raygon@mit.edu or Kevin J. P. Woods kwoods@mit.edu //add in the audio source $('