class SFML::Sound

A short sound that plays from a SoundBuffer held entirely in memory. Cheap to create, suitable for game SFX (blips, hits, footsteps).

buffer = SFML::SoundBuffer.load(β€œblip.wav”) sound = SFML::Sound.new(buffer, volume: 80, pitch: 1.2, looping: true) sound.play