class

PointClickEngine::Audio::AudioManager

Inherits Reference < Object

Main audio manager using component-based architecture

Constructors

Class methods

available?
Source

Instance methods

cleanup

Explicit cleanup - do NOT use finalizer as it causes GC deadlocks with Raylib

Source
clear_cache
Source
crossfade_to(name : String, duration : Float32 = 2.0, loop : Bool = true)
Source
current_music(*args, **options)
Source
current_music(*args, **options, &)
Source
event_bus

Optional EventBus for publishing audio events

Source
event_bus=(event_bus : Core::Events::EventBus | Nil)

Optional EventBus for publishing audio events

Source
get_cache_stats
Source
load_music(name : String, file_path : String)

Music methods (delegate to manager)

Source
load_settings(settings)
Source
load_sound_effect(name : String, file_path : String)

Sound effect methods (delegate to manager)

Source
master_volume(*args, **options)

Legacy property mappings for compatibility

Source
master_volume(*args, **options, &)

Legacy property mappings for compatibility

Source
master_volume=(value : Float32)

Manual delegation for setters and nested properties

Source
music_manager
Source
music_volume
Source
music_volume=(value : Float32)
Source
muted(*args, **options)
Source
muted(*args, **options, &)
Source
muted=(value : Bool)
Source
pause_music
Source
play_music(name : String, loop : Bool = true)
Source
play_sound_at(name : String, position : RL::Vector2, listener_pos : RL::Vector2, max_distance : Float32 = 500.0)
Source
play_sound_effect(name : String)
Source
preload_music(tracks : Array(Tuple(String, String)))
Source
preload_sounds(sounds : Array(Tuple(String, String)))

Batch operations

Source
resource_cache
Source
resume_music
Source
save_settings

Settings persistence

Source
set_master_volume(volume : Float32)

Volume control methods

Source
set_music_volume(volume : Float32)
Source
set_sfx_volume(volume : Float32)
Source
sfx_volume
Source
sfx_volume=(value : Float32)
Source
sound_effect_manager

Component managers

Source
stop_music
Source
toggle_mute
Source
unload_music(name : String)
Source
unload_sound(name : String)

Resource management

Source
update(dt : Float32 = 0.016_f32)

Update method (must be called each frame)

Source
volume_controller
Source