Class: MkvToolNix::Types::Info::Audio
- Inherits:
-
Object
- Object
- MkvToolNix::Types::Info::Audio
- Defined in:
- lib/mkvtoolnix/types/info/audio.rb
Instance Attribute Summary collapse
-
#bit_depth ⇒ Object
Returns the value of attribute bit_depth.
-
#channels ⇒ Object
Returns the value of attribute channels.
-
#codec ⇒ Object
Returns the value of attribute codec.
-
#codec_id ⇒ Object
Returns the value of attribute codec_id.
-
#codec_inherent_delay ⇒ Object
Returns the value of attribute codec_inherent_delay.
-
#codec_name ⇒ Object
Returns the value of attribute codec_name.
-
#id ⇒ Object
Returns the value of attribute id.
-
#is_commentary ⇒ Object
Returns the value of attribute is_commentary.
-
#is_default ⇒ Object
Returns the value of attribute is_default.
-
#is_enabled ⇒ Object
Returns the value of attribute is_enabled.
-
#is_forced ⇒ Object
Returns the value of attribute is_forced.
-
#is_hearing_impaired ⇒ Object
Returns the value of attribute is_hearing_impaired.
-
#is_original ⇒ Object
Returns the value of attribute is_original.
-
#is_text_descriptions ⇒ Object
Returns the value of attribute is_text_descriptions.
-
#is_visual_impaired ⇒ Object
Returns the value of attribute is_visual_impaired.
-
#language ⇒ Object
Returns the value of attribute language.
-
#language_ietf ⇒ Object
Returns the value of attribute language_ietf.
-
#name ⇒ Object
Returns the value of attribute name.
-
#sampling_frequency ⇒ Object
Returns the value of attribute sampling_frequency.
-
#uid ⇒ Object
Returns the value of attribute uid.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, uid:, name:, codec:, codec_id:, codec_name:, codec_inherent_delay:, sampling_frequency:, bit_depth:, channels:, is_default:, is_enabled:, is_commentary:, is_hearing_impaired:, is_original:, is_text_descriptions:, is_visual_impaired:, is_forced:, language:, language_ietf:, track_number:) ⇒ Audio
constructor
A new instance of Audio.
Constructor Details
#initialize(id:, uid:, name:, codec:, codec_id:, codec_name:, codec_inherent_delay:, sampling_frequency:, bit_depth:, channels:, is_default:, is_enabled:, is_commentary:, is_hearing_impaired:, is_original:, is_text_descriptions:, is_visual_impaired:, is_forced:, language:, language_ietf:, track_number:) ⇒ Audio
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/mkvtoolnix/types/info/audio.rb', line 24 def initialize(id:, uid:, name:, codec:, codec_id:, codec_name:, codec_inherent_delay:, sampling_frequency:, bit_depth:, channels:, is_default:, is_enabled:, is_commentary:, is_hearing_impaired:, is_original:, is_text_descriptions:, is_visual_impaired:, is_forced:, language:, language_ietf:, track_number:) @id = id @uid = uid @name = name @codec = codec @codec_id = codec_id @codec_name = codec_name @codec_inherent_delay = codec_inherent_delay @sampling_frequency = sampling_frequency @bit_depth = bit_depth @channels = channels @is_default = is_default @is_enabled = is_enabled @is_commentary = is_commentary @is_hearing_impaired = is_hearing_impaired @is_original = is_original @is_text_descriptions = is_text_descriptions @is_visual_impaired = is_visual_impaired @is_forced = is_forced @language = language @language_ietf = language_ietf @track_number = track_number end |
Instance Attribute Details
#bit_depth ⇒ Object
Returns the value of attribute bit_depth.
8 9 10 |
# File 'lib/mkvtoolnix/types/info/audio.rb', line 8 def bit_depth @bit_depth end |
#channels ⇒ Object
Returns the value of attribute channels.
8 9 10 |
# File 'lib/mkvtoolnix/types/info/audio.rb', line 8 def channels @channels end |
#codec ⇒ Object
Returns the value of attribute codec.
8 9 10 |
# File 'lib/mkvtoolnix/types/info/audio.rb', line 8 def codec @codec end |
#codec_id ⇒ Object
Returns the value of attribute codec_id.
8 9 10 |
# File 'lib/mkvtoolnix/types/info/audio.rb', line 8 def codec_id @codec_id end |
#codec_inherent_delay ⇒ Object
Returns the value of attribute codec_inherent_delay.
8 9 10 |
# File 'lib/mkvtoolnix/types/info/audio.rb', line 8 def codec_inherent_delay @codec_inherent_delay end |
#codec_name ⇒ Object
Returns the value of attribute codec_name.
8 9 10 |
# File 'lib/mkvtoolnix/types/info/audio.rb', line 8 def codec_name @codec_name end |
#id ⇒ Object
Returns the value of attribute id.
8 9 10 |
# File 'lib/mkvtoolnix/types/info/audio.rb', line 8 def id @id end |
#is_commentary ⇒ Object
Returns the value of attribute is_commentary.
8 9 10 |
# File 'lib/mkvtoolnix/types/info/audio.rb', line 8 def is_commentary @is_commentary end |
#is_default ⇒ Object
Returns the value of attribute is_default.
8 9 10 |
# File 'lib/mkvtoolnix/types/info/audio.rb', line 8 def is_default @is_default end |
#is_enabled ⇒ Object
Returns the value of attribute is_enabled.
8 9 10 |
# File 'lib/mkvtoolnix/types/info/audio.rb', line 8 def is_enabled @is_enabled end |
#is_forced ⇒ Object
Returns the value of attribute is_forced.
8 9 10 |
# File 'lib/mkvtoolnix/types/info/audio.rb', line 8 def is_forced @is_forced end |
#is_hearing_impaired ⇒ Object
Returns the value of attribute is_hearing_impaired.
8 9 10 |
# File 'lib/mkvtoolnix/types/info/audio.rb', line 8 def is_hearing_impaired @is_hearing_impaired end |
#is_original ⇒ Object
Returns the value of attribute is_original.
8 9 10 |
# File 'lib/mkvtoolnix/types/info/audio.rb', line 8 def is_original @is_original end |
#is_text_descriptions ⇒ Object
Returns the value of attribute is_text_descriptions.
8 9 10 |
# File 'lib/mkvtoolnix/types/info/audio.rb', line 8 def is_text_descriptions @is_text_descriptions end |
#is_visual_impaired ⇒ Object
Returns the value of attribute is_visual_impaired.
8 9 10 |
# File 'lib/mkvtoolnix/types/info/audio.rb', line 8 def is_visual_impaired @is_visual_impaired end |
#language ⇒ Object
Returns the value of attribute language.
8 9 10 |
# File 'lib/mkvtoolnix/types/info/audio.rb', line 8 def language @language end |
#language_ietf ⇒ Object
Returns the value of attribute language_ietf.
8 9 10 |
# File 'lib/mkvtoolnix/types/info/audio.rb', line 8 def language_ietf @language_ietf end |
#name ⇒ Object
Returns the value of attribute name.
8 9 10 |
# File 'lib/mkvtoolnix/types/info/audio.rb', line 8 def name @name end |
#sampling_frequency ⇒ Object
Returns the value of attribute sampling_frequency.
8 9 10 |
# File 'lib/mkvtoolnix/types/info/audio.rb', line 8 def sampling_frequency @sampling_frequency end |
#uid ⇒ Object
Returns the value of attribute uid.
8 9 10 |
# File 'lib/mkvtoolnix/types/info/audio.rb', line 8 def uid @uid end |
Class Method Details
.create(hash) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/mkvtoolnix/types/info/audio.rb', line 12 def self.create(hash) props = hash['properties'] new(id: hash['id'], uid: props['uid'], name: props['track_name'], codec: hash['codec'], codec_id: props['codec_id'], codec_name: props['codec_name'], codec_inherent_delay: props['codec_delay'], sampling_frequency: props['audio_sampling_frequency'], bit_depth: props['audio_bits_per_sample'], channels: props['audio_channels'], is_default: props['default_track'], is_enabled: props['enabled_track'], is_commentary: props['flag_commentary'], is_hearing_impaired: props['flag_hearing_impaired'], is_original: props['flag_original'], is_text_descriptions: props['flag_text_descriptions'], is_visual_impaired: props['flag_visual_impaired'], is_forced: props['forced_track'], language: props['language'], language_ietf: props['language_ietf'], track_number: props['number']) end |