PointClickEngine::Audio::AmbientSoundManager
Inherits Reference < Object
Stub ambient sound manager (no audio)
Constructors
new
SourceInstance methods
cleanup
Sourcecurrent_room_ambience
current_room_ambience=(current_room_ambience : String | Nil)
get_playing_sounds
Sourceglobal_volume
global_volume=(global_volume : Float32)
is_playing?(name : String) : Bool
Sourcelistener_position
listener_position=(listener_position : RL::Vector2)
play_sound(name : String, volume : Float32 | Nil = nil)
Sourceregister_sound(config : AmbientSoundConfig)
Sourceset_global_volume(volume : Float32)
Sourceset_listener_position(position : RL::Vector2)
Sourceset_room_ambience(ambience_name : String, fade_duration : Float32 = 2.0_f32)
Sourcesounds
sounds=(sounds : Hash(String, AmbientSound))
stop_all(immediate : Bool = false)
Sourcestop_room_ambience(fade_duration : Float32 = 2.0_f32)
Sourcestop_sound(name : String, immediate : Bool = false)
Sourceupdate(dt : Float32)
Source