Sha256: 996a2fb328d59a364a005974e581f8265a3050f07da06c9c627c118ed5e11595
Contents?: true
Size: 1015 Bytes
Versions: 3
Compression:
Stored size: 1015 Bytes
Contents
module FormatParser class Audio NATURE = :audio # Type of the file (e.g :mp3) attr_accessor :format # The number of audio channels for sound files that are muxed # and for video files with embedded sound attr_accessor :num_audio_channels # SampeThe number of audio channels for sound files that are muxed # and for video files with embedded sound attr_accessor :audio_sample_rate_hz # Duration of the media object (be it audio or video) in seconds, # as a Float attr_accessor :media_duration_seconds # Duration of the media object in addressable frames or samples, # as an Integer attr_accessor :media_duration_frames # If a parser wants to provide any extra information to the caller # it can be placed here attr_accessor :intrinsics # Only permits assignments via defined accessors def initialize(**attributes) attributes.map { |(k, v)| public_send("#{k}=", v) } end def nature NATURE end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
format_parser-0.3.1 | lib/audio.rb |
format_parser-0.3.0 | lib/audio.rb |
format_parser-0.2.0 | lib/audio.rb |