class FormatParser::Audio

Constants

NATURE

Attributes

album[RW]

Album of the audio

artist[RW]

Artist of the audio

audio_sample_rate_hz[RW]

The sample rate of the audio file in hertz, as an Integer

content_type[RW]

The MIME type of the sound file

format[RW]

Type of the file (e.g :mp3)

intrinsics[RW]

If a parser wants to provide any extra information to the caller it can be placed here

media_duration_frames[RW]

Duration of the media object in addressable frames or samples, as an Integer

media_duration_seconds[RW]

Duration of the media object (be it audio or video) in seconds, as a Float

num_audio_channels[RW]

The number of audio channels for sound files that are muxed and for video files with embedded sound

title[RW]

Title of the audio

Public Class Methods

new(**attributes) click to toggle source

Only permits assignments via defined accessors

# File lib/audio.rb, line 42
def initialize(**attributes)
  attributes.map { |(k, v)| public_send("#{k}=", v) }
end

Public Instance Methods

nature() click to toggle source
# File lib/audio.rb, line 46
def nature
  NATURE
end