module Eagle::Codecs::Vorbis

Overview

Ogg Vorbis decoding in pure Crystal, used by Sound.load for .ogg files. Output matches libvorbis bit for bit on the test fixtures.

Defined in:

eagle/audio/vorbis.cr

Class Method Summary

Class Method Detail

def self.decode(data : Bytes) : AudioBuffer #

Decodes a whole Ogg Vorbis file into an AudioBuffer.


def self.ogg?(data : Bytes) : Bool #

True when data starts with an Ogg page header.


def self.packets(data : Bytes) : Tuple(Array(Bytes), Int64) #

--- Ogg pages -> packets ------------------------------------------------- :nodoc: