class
Crame::Music
- Crame::Music
- Crame::Source
- Reference
- Object
Overview
A Music is an ausio Source that is opened and streamed on demand.
Useful and suitable for long audio files.
Defined in:
crame/music.crConstructors
-
.new(path : String | Path)
Creates a new
Musicgiven itspath.
Instance Method Summary
-
#duration : Time::Span
Returns the duration of
self. -
#seek(position : Time::Span)
Seeks the cursor on
selfto the givenposition. -
#tell : Time::Span
Returns the actual position of the cursor on
self.