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.crClass Method Summary
-
.decode(data : Bytes) : AudioBuffer
Decodes WAV bytes into an
AudioBuffer. -
.encode(buf : AudioBuffer) : Bytes
Encodes an
AudioBufferas 16-bit PCM WAV, for saving generated sounds. -
.wav?(data : Bytes) : Bool
True when data starts with a RIFF/WAVE header.
Class Method Detail
def self.encode(buf : AudioBuffer) : Bytes
#
Encodes an AudioBuffer as 16-bit PCM WAV, for saving generated sounds.