class RemiAudio::Demuxers::Ogg

Overview

A very basic Ogg demuxer. This implementation can read pages, and can rewind to the very beginning of an Ogg file, but cannot seek yet.

Defined in:

remiaudio/demuxers/ogg.cr

Constant Summary

MAGIC = "OggS"
MAGIC_BYTES = MAGIC.to_bytes
PAGE_VERSION = 0

Constructors

Instance Method Summary

Constructor Detail

def self.new(io : IO, upto : Int | Nil = nil) #

[View source]

Instance Method Detail

def atPage? : Bool #

[View source]
def crc : UInt32 #

[View source]
def granulePos : UInt64 #

[View source]
def nextPacket(upto : Int | Nil = nil) : Bytes #

[View source]
def packetsDecoded : Int64 #

[View source]
def packetsDecoded=(packetsDecoded : Int64) #

[View source]
def pageNumber : UInt64 #

[View source]
def rewind : Nil #

[View source]
def seqNumber : UInt32 #

[View source]
def serial : UInt32 #

[View source]
def startPos : Int64 #

[View source]
def type : PageType #

[View source]