Membrane.WAV.Postprocessing (Membrane WAV Plugin v0.2.0-alpha) View Source

Module responsible for post-processing serialized WAV files.

Due to the fact that Membrane.WAV.Serializer 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.

Link to this section Summary

Functions

Fixes header of the WAV file located in path.

Link to this section Types

Specs

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

Link to this section Functions

Specs

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

Fixes header of the WAV file located in path.