Crowbar::Rules::MP3Rule
Inherits Crowbar::Rule < Reference < Object
Structure-preserving rule for MPEG Audio Layer III (MP3) files and streams. Preserves ID3v2 metadata headers and MPEG audio frame sync words (0xFF 0xE0+), while mutating ID3 tags, MPEG audio frame headers (bitrates, sample frequencies, channel modes, CRC protection), and audio bitstream payload frames.
Instance methods
Applies a structure-preserving transformation to the buffer
description
SourceScans buffer for MPEG audio frame header offsets
Checks if the given offset contains an MPEG audio frame sync (11 bits set)
Checks whether the buffer matches the format handled by this rule
name
Source