getSound().audio?
Is editing the properties of getSound().audio allowed according to the guidelines?
Keeping in mind not repeatedly playing sounds in the draw function, is changing the volume and pitch allowed?
I made this function to play sounds at different pitches and volumes:
var advSound = function(name, volume, preservesPitch, playbackRate, startTime) {
var sound = getSound(name);
if(!sound){
return;
}
sound.audio.preservesPitch = preservesPitch;
sound.audio.playbackRate = playbackRate;
sound.audio.volume = constrain(volume, 0.01, 1) || 1;
sound.audio.currentTime = startTime || 0;
sound.audio.play();
};
Is this allowed by the guidelines? If not why?
(I'll delete the program if it's not allowed. I have no desire to be banned.)
Влезте в услугата, за да оставите коментар.