File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ class gsuiChannels extends gsui0ne {
9
9
#chanSelected = null ;
10
10
#analyserW = 10 ;
11
11
#analyserH = 50 ;
12
+ #analyserType = "hz" ;
12
13
static #selectChanPopup = GSUgetTemplate ( "gsui-channels-selectPopup" ) ;
13
14
static #selectChanInput = gsuiChannels . #selectChanPopup. querySelector ( "select" ) ;
14
15
@@ -61,6 +62,10 @@ class gsuiChannels extends gsui0ne {
61
62
chans . forEach ( chan => chan . $analyser . $setResolution ( width , height ) ) ;
62
63
}
63
64
}
65
+ $setAnalyserType ( t ) {
66
+ this . #analyserType = t ;
67
+ this . querySelectorAll ( "gsui-channel gsui-analyser-hist" ) . forEach ( el => el . $setType ( t ) ) ;
68
+ }
64
69
$updateVu ( ldata , rdata ) {
65
70
this . $elements . $vu . $draw ( ldata , rdata ) ;
66
71
}
@@ -111,6 +116,7 @@ class gsuiChannels extends gsui0ne {
111
116
. then ( name => this . $onchange ( "renameChannel" , id , name ) ) ;
112
117
} ;
113
118
chan . $analyser . $setResolution ( this . #analyserW, this . #analyserH ) ;
119
+ chan . $analyser . $setType ( this . #analyserType ) ;
114
120
if ( this . #chanSelected ) {
115
121
this . #updateChanConnections( ) ;
116
122
} else if ( id === "main" ) {
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ class gsuiMixer extends gsui0ne {
48
48
$attributeChanged ( prop , val ) {
49
49
switch ( prop ) {
50
50
case "analyser" :
51
- this . querySelectorAll ( "gsui-channel gsui-analyser-hist" ) . forEach ( el => el . $setType ( val ) ) ;
51
+ this . $elements . $channels . $setAnalyserType ( val ) ;
52
52
break ;
53
53
}
54
54
}
You can’t perform that action at this time.
0 commit comments