SAO Utils 2的音频可视化插件
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
724 B

import QtQuick 2.12
import ".." //显式导入单例Common.qml
Canvas {
width: widget.width;
height: widget.height;
contextType: "2d";
renderTarget: Canvas.FramebufferObject
renderStrategy: Canvas.Cooperative
signal audioDataUpdeted(var data)
signal configsUpdated()
property var configs: widget.settings[Common.stylesURL[widget.settings.styles["index"]]]
onConfigsChanged: {
if (context) {
configsUpdated();
}
}
onContextChanged: {
if (context) {
configsUpdated();
}
}
Connections {
enabled: Boolean(context)
target: Common
onAudioDataUpdated: audioDataUpdeted(audioData)
}
}