more bro charting in progres

This commit is contained in:
Cameron Taylor 2021-09-16 14:21:11 -04:00
parent d00f2268f9
commit a2eeaf5c3c

View file

@ -14,7 +14,7 @@ class SpectogramSprite extends FlxSprite
{ {
super(); super();
makeGraphic(200, 200, FlxColor.BLUE); makeGraphic(200, 200, FlxColor.BLACK);
} }
override function update(elapsed:Float) override function update(elapsed:Float)
@ -23,7 +23,7 @@ class SpectogramSprite extends FlxSprite
{ {
if (FlxG.sound.music.playing) if (FlxG.sound.music.playing)
{ {
FlxSpriteUtil.drawRect(this, 0, 0, width, height, FlxColor.BLUE); FlxSpriteUtil.drawRect(this, 0, 0, width, height, 0x45000000);
@:privateAccess @:privateAccess
var audioData:Int16Array = FlxG.sound.music._channel.__source.buffer.data; // jank and hacky lol! var audioData:Int16Array = FlxG.sound.music._channel.__source.buffer.data; // jank and hacky lol!