class

Crowbar::Rules::WAVRule

Inherits Crowbar::Rule < Reference < Object

Structure-preserving rule for RIFF/WAVE audio streams. Preserves the RIFF container header and WAVE subchunks (fmt , data), while mutating audio format codes, channel counts, sampling rates, bit depths, and PCM sample waveforms, and automatically synchronizing container and chunk sizes.

Instance methods

apply(context : Context, buffer : Buffer) : Bool

Applies a structure-preserving transformation to the buffer

Source
description
Source
match?(buffer : Buffer) : Bool

Checks whether the buffer matches the format handled by this rule

Source
name
Source
parse_subchunks(buffer : Buffer) : Array(Subchunk)
Source

Nested types