class

Game::Sound

Inherits Reference < Object

Constants

DEBUG = false

Constructors

get(name) : Sound
Source
new(filename : String, volume = 1_f32, pitch = 1_f32)
Source

Class methods

load(name : String, filename : String, volume : Float32 | Nil, pitch : Float32 | Nil)
Source
load(sounds : Array(NamedTuple(name: String, filename: String, volume: Float32 | Nil, pitch: Float32 | Nil)))
Source
pause(sound : LibRay::Sound)
Source
pitch(sound : LibRay::Sound, value : Float32)
Source
play(sound : LibRay::Sound)
Source
playing?(sound : LibRay::Sound)
Source
resume(sound : LibRay::Sound)
Source
stop(sound : LibRay::Sound)
Source
unload(sound : LibRay::Sound)
Source
unload_all
Source
volume(sound : LibRay::Sound, value : Float32)
Source

Instance methods

load(filename : String)
Source
pause
Source
pitch
Source
pitch=(value : Float32)
Source
play
Source
playing?
Source
randomize_pitch(min : Float32 = 0.5_f32, max : Float32 = 1.5_f32)
Source
randomize_volume(min : Float32 = 0.5_f32, max : Float32 = 1.5_f32)
Source
resume
Source
sound
Source
stop
Source
unload
Source
volume
Source
volume=(value : Float32)
Source