.
This commit is contained in:
parent
17db7a81b9
commit
9f81251570
@ -9175,8 +9175,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
const type = checkAudioType(data);
|
const type = checkAudioType(data);
|
||||||
if (type === "") {
|
if (type === "") {
|
||||||
console.error(
|
console.error(
|
||||||
"Unknown audio type. Header: '" +
|
"Unknown audio type. Header: '" + [...toCheck]
|
||||||
[...toCheck]
|
|
||||||
.map((v) => v.toString().padStart(2, "0"))
|
.map((v) => v.toString().padStart(2, "0"))
|
||||||
.join(" ")
|
.join(" ")
|
||||||
.toUpperCase() +
|
.toUpperCase() +
|
||||||
@ -9361,8 +9360,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
this.audioType = checkAudioType(data);
|
this.audioType = checkAudioType(data);
|
||||||
if (!this.audioType) {
|
if (!this.audioType) {
|
||||||
console.error(
|
console.error(
|
||||||
"Unknown audio type. Header: '" +
|
"Unknown audio type. Header: '" + [...toCheck]
|
||||||
[...toCheck]
|
|
||||||
.map((v) => v.toString(16).padStart(2, "0"))
|
.map((v) => v.toString(16).padStart(2, "0"))
|
||||||
.join(" ")
|
.join(" ")
|
||||||
.toUpperCase() +
|
.toUpperCase() +
|
||||||
@ -9792,7 +9790,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
this.gain = this.ac.createGain();
|
this.gain = this.ac.createGain();
|
||||||
this.gain.connect(this.ac.destination);
|
this.gain.connect(this.ac.destination);
|
||||||
this.audioRoutes = new Map();
|
this.audioRoutes = new Map();
|
||||||
/*const func = () => {
|
const func = () => {
|
||||||
this.ac.resume();
|
this.ac.resume();
|
||||||
document.body.removeEventListener("mousedown", func);
|
document.body.removeEventListener("mousedown", func);
|
||||||
document.body.removeEventListener("touchstart", func);
|
document.body.removeEventListener("touchstart", func);
|
||||||
@ -9800,7 +9798,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
};
|
};
|
||||||
document.body.addEventListener("mousedown", func, { capture: true });
|
document.body.addEventListener("mousedown", func, { capture: true });
|
||||||
document.body.addEventListener("touchstart", func, { capture: true });
|
document.body.addEventListener("touchstart", func, { capture: true });
|
||||||
document.body.addEventListener("keydown", func, { capture: true });*/
|
document.body.addEventListener("keydown", func, { capture: true });
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 解码音频数据
|
* 解码音频数据
|
||||||
@ -17123,7 +17121,10 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
[x + w, y + h],
|
[x + w, y + h],
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
const inRect = ([x, y], [[sx, sy], [dx, dy]]) => {
|
const inRect = ([x, y], [
|
||||||
|
[sx, sy],
|
||||||
|
[dx, dy]
|
||||||
|
]) => {
|
||||||
return sx <= x && x <= dx && sy <= y && y <= dy;
|
return sx <= x && x <= dx && sy <= y && y <= dy;
|
||||||
};
|
};
|
||||||
const pos = [px, py];
|
const pos = [px, py];
|
||||||
@ -17698,9 +17699,9 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
text,
|
text,
|
||||||
150,
|
150,
|
||||||
posy - 30,
|
posy - 30,
|
||||||
page === this.selection[0] && i === this.selection[1]
|
page === this.selection[0] && i === this.selection[1] ?
|
||||||
? "#FFFFFF"
|
"#FFFFFF" :
|
||||||
: "#444444",
|
"#444444",
|
||||||
"#000000",
|
"#000000",
|
||||||
6,
|
6,
|
||||||
core.ui._buildFont(66, true)
|
core.ui._buildFont(66, true)
|
||||||
@ -17898,9 +17899,9 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
text,
|
text,
|
||||||
950,
|
950,
|
||||||
posy - 30,
|
posy - 30,
|
||||||
page === this.selection[0] && i === this.selection[1]
|
page === this.selection[0] && i === this.selection[1] ?
|
||||||
? "#FFFFFF"
|
"#FFFFFF" :
|
||||||
: "#444444",
|
"#444444",
|
||||||
"#000000",
|
"#000000",
|
||||||
6,
|
6,
|
||||||
core.ui._buildFont(66, true)
|
core.ui._buildFont(66, true)
|
||||||
|
Loading…
Reference in New Issue
Block a user