class RemiAudio::Cue::Timestamp
- RemiAudio::Cue::Timestamp
- Reference
- Object
Overview
Represents a moment or length in time in a CUE sheet.
Defined in:
remiaudio/cue.crConstructors
- .fromBytePos(value : Int) : Timestamp
-
.new(minutes : UInt32, seconds : UInt32, frames : UInt32)
Creates a new
Timestamp
with the given values. -
.new
Creates a new
Timestamp
.
Instance Method Summary
- #-(other : Timestamp) : Time::Span
-
#frames : UInt32
The number of CD frames.
- #frames=(value : UInt32) : Nil
-
#minutes : UInt32
The minute value.
- #minutes=(value : UInt32) : Nil
- #nanoseconds : Int64
-
#seconds : UInt32
The second value.
- #seconds=(value : UInt32) : Nil
-
#to_s(io : IO) : Nil
Appends a short String representation of this object which includes its class name and its object address.
-
#toBytePos : Int32
Convert this timestamp to a byte position.
-
#toSampleNum : Int32
Convert this timestamp to a sample number.
Constructor Detail
def self.new(minutes : UInt32, seconds : UInt32, frames : UInt32)
#
Creates a new Timestamp
with the given values.
Instance Method Detail
Description copied from class Reference
Appends a short String representation of this object which includes its class name and its object address.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).to_s # => #<Person:0x10a199f20>
def toBytePos : Int32
#
Convert this timestamp to a byte position. This always assumes CD audio (44100 Hz 16-bit, 2 channels).
def toSampleNum : Int32
#
Convert this timestamp to a sample number. This always assumes CD audio (44100 Hz 16-bit, 2 channels).