Skip to content

Commit 6f9921d

Browse files
committed
add appstate initializer
1 parent ea49026 commit 6f9921d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

MVTouchbar/MVTouchbar/ViewController.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ class ViewController: NSViewController {
2020
let audioEngine = AVAudioEngine()
2121
var vol : volume = volume()
2222

23+
var appState = AppState()
2324
var colorSKView = spritekitView()
2425

2526

@@ -65,12 +66,9 @@ class ViewController: NSViewController {
6566

6667
audioEngine.inputNode.installTap(onBus: 0, bufferSize: 1024, format: format) { (buffer, time) in
6768
let levels = self.vol.analyze(buffer: buffer)
68-
print(levels)
6969
for i in 0...99 {
7070
self.colorSKView.skBarsScene.levelFor(group: 99 - i, level: levels.0[i])
7171
}
72-
print(levels.1)
73-
7472

7573

7674
}

0 commit comments

Comments
 (0)