PointClickEngine::Audio::SoundEffectManager
Inherits Reference < Object
Manages sound effects loading, caching, and playback
Instance methods
cleanup
Explicit cleanup method - caller is responsible for calling this Do NOT use finalizer as it causes GC deadlocks with Raylib
load_sound(name : String, file_path : String) : SoundEffect
Load a sound effect from file and cache it
play_sound_at(name : String, position : RL::Vector2, listener_pos : RL::Vector2, max_distance : Float32 = 500.0) : Nil
Play a sound effect at a specific position (3D audio)
preload_sounds(sound_files : Array(Tuple(String, String))) : Nil
Preload multiple sound effects