1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-12-22 12:50:36 +01: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

@ -634,6 +634,14 @@
"message": "1% der Werte",
"description": ""
},
"audiofakerate_options.10%": {
"message": "10% der Werte",
"description": ""
},
"audiofakerate_options.100%": {
"message": "100% der Werte",
"description": ""
},
"audionoiselevel_title": {
"message": "Rauschlevel",
"description": ""

View File

@ -634,6 +634,14 @@
"message": "1% of the values",
"description": ""
},
"audiofakerate_options.10%": {
"message": "10% of the values",
"description": ""
},
"audiofakerate_options.100%": {
"message": "100% of the values",
"description": ""
},
"audionoiselevel_title": {
"message": "Noise level",
"description": ""

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",