Advertisement
Guest User

Untitled

a guest
Mar 4th, 2025
11
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. extends AudioStreamPlayer
  2.  
  3. var record: AudioEffectRecord
  4. var capture: AudioEffectSpectrumAnalyzerInstance
  5. @export var volume :float
  6.  
  7. # Called when the node enters the scene tree for the first time.
  8. func _ready() -> void:
  9. var idx = AudioServer.get_bus_index("Record")
  10. capture = AudioServer.get_bus_effect_instance(idx, 1)
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement