mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-06 13:40:25 +00:00
fixes in audio
This commit is contained in:
@@ -345,8 +345,10 @@
|
||||
if (v === undefined) {
|
||||
continue;
|
||||
}
|
||||
if (input.name == "gain") {
|
||||
if (input.name == "gain")
|
||||
this.audionode.gain.value = v;
|
||||
else if (input.name == "src") {
|
||||
this.setProperty("src",v);
|
||||
} else if (input.name == "playbackRate") {
|
||||
this.properties.playbackRate = v;
|
||||
for (var j = 0; j < this._audionodes.length; ++j) {
|
||||
@@ -458,6 +460,7 @@
|
||||
LGAudioSource.prototype.onGetInputs = function() {
|
||||
return [
|
||||
["playbackRate", "number"],
|
||||
["src","string"],
|
||||
["Play", LiteGraph.ACTION],
|
||||
["Stop", LiteGraph.ACTION]
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user