just bb delay

This commit is contained in:
Nicky Case 2019-09-17 10:35:37 -04:00
parent a776cb0642
commit f01332c9ac
1 changed files with 2 additions and 1 deletions

View File

@ -38,7 +38,8 @@ window.voice = function(name, options){
var delta = now - window._lastPlayedVoice[name];
// If too soon, DON'T PLAY.
if(delta < 8/60*1000) return; // 8 frames
var delay = (name=="voice_beebee") ? 8 : 5;
if(delta < delay/60*1000) return;
// Otherwise, play
options = options || {};