Class: BMFF::Box::AudioSampleEntry
- Inherits:
-
SampleEntry
- Object
- Base
- SampleEntry
- BMFF::Box::AudioSampleEntry
- Defined in:
- lib/bmff/box/audio_sample_entry.rb
Overview
vim: set expandtab tabstop=2 shiftwidth=2 softtabstop=2 autoindent:
Instance Attribute Summary collapse
-
#channelcount ⇒ Object
Returns the value of attribute channelcount.
-
#pre_defined ⇒ Object
Returns the value of attribute pre_defined.
-
#reserved2 ⇒ Object
Returns the value of attribute reserved2.
-
#reserved3 ⇒ Object
Returns the value of attribute reserved3.
-
#samplerate ⇒ Object
Returns the value of attribute samplerate.
-
#samplesize ⇒ Object
Returns the value of attribute samplesize.
Attributes inherited from SampleEntry
#data_reference_index, #reserved1
Attributes inherited from Base
#io, #largesize, #offset, #parent, #size, #type, #usertype
Instance Method Summary collapse
Methods inherited from Base
#actual_size, #container?, #eob?, #parse, register_box, #remaining_size, #seek_to_end
Instance Attribute Details
#channelcount ⇒ Object
Returns the value of attribute channelcount.
5 6 7 |
# File 'lib/bmff/box/audio_sample_entry.rb', line 5 def channelcount @channelcount end |
#pre_defined ⇒ Object
Returns the value of attribute pre_defined.
5 6 7 |
# File 'lib/bmff/box/audio_sample_entry.rb', line 5 def pre_defined @pre_defined end |
#reserved2 ⇒ Object
Returns the value of attribute reserved2.
5 6 7 |
# File 'lib/bmff/box/audio_sample_entry.rb', line 5 def reserved2 @reserved2 end |
#reserved3 ⇒ Object
Returns the value of attribute reserved3.
5 6 7 |
# File 'lib/bmff/box/audio_sample_entry.rb', line 5 def reserved3 @reserved3 end |
#samplerate ⇒ Object
Returns the value of attribute samplerate.
5 6 7 |
# File 'lib/bmff/box/audio_sample_entry.rb', line 5 def samplerate @samplerate end |
#samplesize ⇒ Object
Returns the value of attribute samplesize.
5 6 7 |
# File 'lib/bmff/box/audio_sample_entry.rb', line 5 def samplesize @samplesize end |
Instance Method Details
#parse_data ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/bmff/box/audio_sample_entry.rb', line 7 def parse_data super @reserved2 = [io.get_uint32, io.get_uint32] @channelcount = io.get_uint16 @samplesize = io.get_uint16 @pre_defined = io.get_uint16 @reserved3 = io.get_uint16 @samplerate = io.get_uint32 end |