mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-01-03 18:42:00 +01:00
Added 10% and 100% fake rates for audio
This commit is contained in:
parent
720a9bc9a5
commit
07c5585f5a
@ -634,6 +634,14 @@
|
|||||||
"message": "1% der Werte",
|
"message": "1% der Werte",
|
||||||
"description": ""
|
"description": ""
|
||||||
},
|
},
|
||||||
|
"audiofakerate_options.10%": {
|
||||||
|
"message": "10% der Werte",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"audiofakerate_options.100%": {
|
||||||
|
"message": "100% der Werte",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
"audionoiselevel_title": {
|
"audionoiselevel_title": {
|
||||||
"message": "Rauschlevel",
|
"message": "Rauschlevel",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
@ -634,6 +634,14 @@
|
|||||||
"message": "1% of the values",
|
"message": "1% of the values",
|
||||||
"description": ""
|
"description": ""
|
||||||
},
|
},
|
||||||
|
"audiofakerate_options.10%": {
|
||||||
|
"message": "10% of the values",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"audiofakerate_options.100%": {
|
||||||
|
"message": "100% of the values",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
"audionoiselevel_title": {
|
"audionoiselevel_title": {
|
||||||
"message": "Noise level",
|
"message": "Noise level",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
@ -27,6 +27,8 @@
|
|||||||
"1000": function(array){return 1000;},
|
"1000": function(array){return 1000;},
|
||||||
"0.1%": function(array){return array.length / 1000;},
|
"0.1%": function(array){return array.length / 1000;},
|
||||||
"1%": function(array){return array.length / 100;},
|
"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){
|
return function getAudioFakeRate(array, prefs){
|
||||||
var func = audioFakeRate[prefs("audioFakeRate")];
|
var func = audioFakeRate[prefs("audioFakeRate")];
|
||||||
|
@ -179,7 +179,7 @@
|
|||||||
{
|
{
|
||||||
name: "audioFakeRate",
|
name: "audioFakeRate",
|
||||||
defaultValue: "100",
|
defaultValue: "100",
|
||||||
options: ["1", "10", "100", "1000", "0.1%", "1%"]
|
options: ["1", "10", "100", "1000", "0.1%", "1%", "10%", "100%"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "audioNoiseLevel",
|
name: "audioNoiseLevel",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user