wavex v0.12.0 Wavex.Chunk.Format
Read a format chunk.
Link to this section Summary
Link to this section Types
Link to this type
t()
t() :: %Wavex.Chunk.Format{ bits_per_sample: pos_integer(), block_align: pos_integer(), byte_rate: pos_integer(), channels: pos_integer(), sample_rate: pos_integer() }
Link to this section Functions
Link to this function
read(binary)
read(binary()) :: {:ok, t(), binary()} | {:error, Wavex.Error.BlockAlignMismatch.t() | Wavex.Error.ByteRateMismatch.t() | Wavex.Error.UnexpectedEOF.t() | Wavex.Error.UnexpectedFormatSize.t() | Wavex.Error.UnexpectedFourCC.t() | Wavex.Error.UnsupportedBitrate.t() | Wavex.Error.UnsupportedFormat.t() | Wavex.Error.ZeroChannels.t()}
Read a format chunk.