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
727 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()
readonly property var configs: widget.settings[widget.settings.current_style] ?? defaultValues
onConfigsChanged: {
if (context) {
configsUpdated();
}
}
onContextChanged: {
if (context) {
configsUpdated();
}
}
Connections {
enabled: Boolean(context)
target: Common
onAudioDataUpdated: audioDataUpdeted(audioData)
}
}