module Eagle::Codecs::WAV

Overview

WAV decoding (8, 16, 24 and 32-bit PCM, 32 and 64-bit float) and encoding (16-bit PCM).

Defined in:

eagle/audio/wav.cr

Class Method Summary

Class Method Detail

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

Decodes WAV bytes into an AudioBuffer.


def self.encode(buf : AudioBuffer) : Bytes #

Encodes an AudioBuffer as 16-bit PCM WAV, for saving generated sounds.


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

True when data starts with a RIFF/WAVE header.