class Mkv_File::Audio_Track
Attributes
codec[R]
codec_id[R]
default[R]
id[R]
language[R]
name[R]
uid[R]
Public Class Methods
new(track_data)
click to toggle source
# File bin/mkvtoolhelper, line 26 def initialize track_data @id = track_data['id'] @codec = track_data['codec'] @default = track_data['properties']['default_track'] @name = track_data['properties']['track_name'] @language = track_data['properties']['language'] @codec_id = track_data['properties']['codec_id'] @uid = track_data['properties']['uid'] end
Public Instance Methods
==(other)
click to toggle source
# File bin/mkvtoolhelper, line 36 def ==(other) @id == other.id && @codec == other.codec && @default == other.default && @name == other.name && @language == other.language && @codec_id == other.codec_id && @uid == other.uid end
get_tracks(file)
click to toggle source
# File bin/mkvtoolhelper, line 60 def get_tracks file file.audio end
hash()
click to toggle source
# File bin/mkvtoolhelper, line 46 def hash @id.hash & @codec.hash & @default.hash & @name.hash & @language.hash & @codec_id.hash & @uid.hash end
to_s()
click to toggle source
# File bin/mkvtoolhelper, line 56 def to_s "#<Audio_Track::#{@name} (#{@language})" end