1
0
Fork 0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-07-04 12:36:37 +02:00

Added 10% and 100% fake rates for audio

This commit is contained in:
kkapsner 2018-07-04 23:59:27 +02:00
parent 720a9bc9a5
commit 07c5585f5a
4 changed files with 19 additions and 1 deletions

View file

@ -27,6 +27,8 @@
"1000": function(array){return 1000;},
"0.1%": function(array){return array.length / 1000;},
"1%": function(array){return array.length / 100;},
"10%": function(array){return array.length / 10;},
"100%": function(array){return array.length;},
};
return function getAudioFakeRate(array, prefs){
var func = audioFakeRate[prefs("audioFakeRate")];

View file

@ -179,7 +179,7 @@
{
name: "audioFakeRate",
defaultValue: "100",
options: ["1", "10", "100", "1000", "0.1%", "1%"]
options: ["1", "10", "100", "1000", "0.1%", "1%", "10%", "100%"]
},
{
name: "audioNoiseLevel",