class Crame::Sound

Overview

A Sound is an audio Source that is loaded into the RAM.

Useful and suitable for short audio files.

Defined in:

crame/sound.cr

Constructors

Instance methods inherited from class Crame::Source

finalize finalize, looping=(looping : Bool) looping=, looping? : Bool looping?, pause pause, pitch : Float64 pitch, pitch=(pitch : Float64) pitch=, play play, playing? : Bool playing?, stop stop, volume : Float64 volume, volume=(volume : Float64) volume=

Constructor Detail

def self.new(path : String | Path) #

Creates a new Sound given its path.