adjust single-audio test to include function call.

This commit is contained in:
Josh de Leeuw 2016-10-07 09:18:55 -04:00
parent fd458fec74
commit 94e06aa33d

View File

@ -18,16 +18,20 @@
var block_1 = {
type: 'single-audio',
timeline: [
{stimulus: 'sound/sound.mp3'},
{stimulus: function() { return 'sound/sound.mp3'; }},
{stimulus: 'sound/hammer.mp3'}
],
prompt: 'press any key to advance'
}
jsPsych.pluginAPI.preloadAudioFiles(['sound/sound.mp3'], start);
function start(){
jsPsych.init({
timeline: [block_1],
on_finish: function() {jsPsych.data.displayData();}
});
}
</script>
</html>