ExFLV.Tag.AudioData (FLV muxer and demuxer v0.4.0)
View SourceModule describing flv AUDIODATA.
Summary
Types
@type sound_format() ::
:pcm
| :adpcm
| :mp3
| :pcm_le
| :nellymoser_16khz_mono
| :nellymoser_8khz_mono
| :nellymoser
| :pcma
| :pcmu
| :reserved
| :aac
| :speex
| :mp3_8khz
| :device_specific
@type sound_type() :: :mono | :stereo
@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
@spec new( iodata(), sound_format(), non_neg_integer(), non_neg_integer(), sound_type() ) :: t()
Creates a new AUDIODATA tag.
Parses the binary into an AUDIODATA tag.
Same as parse/1 but raises on error.