View Source Membrane.WAV.Postprocessing (Membrane WAV Plugin v0.5.0)

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.

Link to this section Summary

Functions

Fixes header of the WAV file located in path.

Link to this section Types

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

Link to this section Functions

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

Fixes header of the WAV file located in path.