Game::Sound
Inherits Reference < Object
Constants
DEBUG = false
Constructors
get(name) : Sound
Sourcenew(filename : String, volume = 1_f32, pitch = 1_f32)
SourceClass methods
load(name : String, filename : String, volume : Float32 | Nil, pitch : Float32 | Nil)
Sourceload(sounds : Array(NamedTuple(name: String, filename: String, volume: Float32 | Nil, pitch: Float32 | Nil)))
Sourcepause(sound : LibRay::Sound)
Sourcepitch(sound : LibRay::Sound, value : Float32)
Sourceplay(sound : LibRay::Sound)
Sourceplaying?(sound : LibRay::Sound)
Sourceresume(sound : LibRay::Sound)
Sourcestop(sound : LibRay::Sound)
Sourceunload(sound : LibRay::Sound)
Sourceunload_all
Sourcevolume(sound : LibRay::Sound, value : Float32)
SourceInstance methods
load(filename : String)
Sourcepause
Sourcepitch
Sourcepitch=(value : Float32)
Sourceplay
Sourceplaying?
Sourcerandomize_pitch(min : Float32 = 0.5_f32, max : Float32 = 1.5_f32)
Sourcerandomize_volume(min : Float32 = 0.5_f32, max : Float32 = 1.5_f32)
Sourceresume
Sourcesound
Sourcestop
Sourceunload
Sourcevolume
Sourcevolume=(value : Float32)
Source