class RemiAudio::Cue::Timestamp

Overview

Represents a moment or length in time in a CUE sheet.

Defined in:

remiaudio/cue.cr

Constructors

Instance Method Summary

Constructor Detail

def self.fromBytePos(value : Int) : Timestamp #

[View source]
def self.new(minutes : UInt32, seconds : UInt32, frames : UInt32) #

Creates a new Timestamp with the given values.


[View source]
def self.new #

Creates a new Timestamp.


[View source]

Instance Method Detail

def -(other : Timestamp) : Time::Span #

[View source]
def frames : UInt32 #

The number of CD frames.


[View source]
def frames=(value : UInt32) : Nil #

[View source]
def minutes : UInt32 #

The minute value.


[View source]
def minutes=(value : UInt32) : Nil #

[View source]
def nanoseconds : Int64 #

[View source]
def seconds : UInt32 #

The second value.


[View source]
def seconds=(value : UInt32) : Nil #

[View source]
def to_s(io : IO) : Nil #
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>

[View source]
def toBytePos : Int32 #

Convert this timestamp to a byte position. This always assumes CD audio (44100 Hz 16-bit, 2 channels).


[View source]
def toSampleNum : Int32 #

Convert this timestamp to a sample number. This always assumes CD audio (44100 Hz 16-bit, 2 channels).


[View source]