Membrane.WAV.Postprocessing (Membrane WAV Plugin v0.10.2)

View Source

Module responsible for post-processing serialized WAV files.

Due to the fact that Membrane.WAV.Serializer with seeking disabled creates WAV file with incorrect file length and data length blocks in the header, post-processing is needed. fix_wav_header/1 fixes that problem.

Header description can be found in Membrane.WAV.Parser.

Summary

Functions

Fixes header of the WAV file located in path.

Types

fix_error()

@type fix_error() ::
  {:error, File.posix() | :invalid_file | :badarg | :terminated} | IO.nodata()

Functions

fix_wav_header(path)

@spec fix_wav_header(String.t()) :: :ok | fix_error()

Fixes header of the WAV file located in path.