abstract class
Crame::Source
- Crame::Source
- Reference
- Object
Overview
A Source is an abstract class representing any audio source that can be heard.
Only supported formats for the audio source are MP3, FLAC, WAV, and OGG.
Direct Known Subclasses
Defined in:
crame/source.crInstance Method Summary
- #finalize
-
#looping=(looping : Bool)
Toggles whether
selfcan be played on loop. -
#looping? : Bool
Returns
trueifselfcan be played on loop,falseotherwise. -
#pause
Pauses
self. -
#pitch : Float64
Returns the pitch of
self. -
#pitch=(pitch : Float64)
Sets the pitch of
self. -
#play
Plays
self. -
#playing? : Bool
Returns
trueifselfis currently playing,falseotherwise. -
#stop
Stops
self. -
#volume : Float64
Returns the volume of
self. -
#volume=(volume : Float64)
Sets the volume of
self.