Skip to content

Commit

Permalink
Slightly changed the smoothing of the visualizer in the web.
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriySalnikov committed Jan 8, 2024
1 parent fd98345 commit 66935d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples_dd3d/demo_music_visualizer.gd
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ func _ready():
%VolumeSlider.value = db_to_linear(AudioServer.get_bus_volume_db(AudioServer.get_bus_index(MasterBus)))

if OS.has_feature('web'):
_on_data_loaded_callback = JavaScriptBridge.create_callback(_on_data_loaded)
motion_smoothing = motion_smoothing * 1.5

_on_data_loaded_callback = JavaScriptBridge.create_callback(_on_data_loaded)
# Retrieve the 'gd_callbacks' object
var gdcallbacks: JavaScriptObject = JavaScriptBridge.get_interface("gd_callbacks")

# Assign the callbacks
gdcallbacks.dataLoaded = _on_data_loaded_callback

Expand Down

0 comments on commit 66935d1

Please sign in to comment.