ExFLV.Tag.AudioData (FLV muxer and demuxer v0.4.0)

View Source

Module describing flv AUDIODATA.

Summary

Functions

Parses the binary into an AUDIODATA tag.

Same as parse/1 but raises on error.

Types

sound_format()

@type sound_format() ::
  :pcm
  | :adpcm
  | :mp3
  | :pcm_le
  | :nellymoser_16khz_mono
  | :nellymoser_8khz_mono
  | :nellymoser
  | :pcma
  | :pcmu
  | :reserved
  | :aac
  | :speex
  | :mp3_8khz
  | :device_specific

sound_type()

@type sound_type() :: :mono | :stereo

t()

@type t() :: %ExFLV.Tag.AudioData{
  data: iodata() | ExFLV.Tag.AudioData.AAC.t(),
  sound_format: sound_format(),
  sound_rate: non_neg_integer(),
  sound_size: non_neg_integer(),
  sound_type: sound_type()
}

Functions

new(data, sound_format, sound_rate, sound_size, sound_type)

Creates a new AUDIODATA tag.

parse(arg1)

@spec parse(binary()) :: {:ok, t()} | {:error, any()}

Parses the binary into an AUDIODATA tag.

parse!(data)

@spec parse!(binary()) :: t()

Same as parse/1 but raises on error.