Class: TagLib::MPEG::Header
- Inherits:
-
Object
- Object
- TagLib::MPEG::Header
- Defined in:
- lib/TagLib_doc.rb
Overview
An implementation of MP3 frame headers. .
This is an implementation of MPEG Layer III headers. The API follows more or less the binary format of these headers. I've used this document as a reference.
Instance Method Summary collapse
-
#bitrate ⇒ Object
Returns the bitrate encoded in the header.
-
#channelMode ⇒ Object
Returns the channel mode for this frame.
-
#frameLength ⇒ Object
Returns the frame length.
-
#isCopyrighted ⇒ Object
Returns true if the copyrighted bit is set.
-
#isOriginal ⇒ Object
Returns true if the "original" bit is set.
-
#isPadded ⇒ Object
Returns true if the frame is padded.
-
#isValid ⇒ Object
Returns true if the frame is at least an appropriate size and has legal values.
-
#layer ⇒ Object
Returns the layer version.
-
#protectionEnabled ⇒ Object
Returns true if the MPEG protection bit is enabled.
-
#sampleRate ⇒ Object
Returns the sample rate in Hz.
-
#samplesPerFrame ⇒ Object
Returns the number of frames per sample.
-
#version ⇒ Object
Returns the MPEG Version of the header.
Instance Method Details
#bitrate ⇒ Object
Returns the bitrate encoded in the header.
1579 1580 |
# File 'lib/TagLib_doc.rb', line 1579 def bitrate() end |
#channelMode ⇒ Object
Returns the channel mode for this frame.
1554 1555 |
# File 'lib/TagLib_doc.rb', line 1554 def channelMode() end |
#frameLength ⇒ Object
Returns the frame length.
1529 1530 |
# File 'lib/TagLib_doc.rb', line 1529 def frameLength() end |
#isCopyrighted ⇒ Object
Returns true if the copyrighted bit is set.
1564 1565 |
# File 'lib/TagLib_doc.rb', line 1564 def isCopyrighted() end |
#isOriginal ⇒ Object
Returns true if the "original" bit is set.
1574 1575 |
# File 'lib/TagLib_doc.rb', line 1574 def isOriginal() end |
#isPadded ⇒ Object
Returns true if the frame is padded.
1539 1540 |
# File 'lib/TagLib_doc.rb', line 1539 def isPadded() end |
#isValid ⇒ Object
Returns true if the frame is at least an appropriate size and has legal values.
1559 1560 |
# File 'lib/TagLib_doc.rb', line 1559 def isValid() end |
#layer ⇒ Object
Returns the layer version. This will be between the values 1-3.
1569 1570 |
# File 'lib/TagLib_doc.rb', line 1569 def layer() end |
#protectionEnabled ⇒ Object
Returns true if the MPEG protection bit is enabled.
1584 1585 |
# File 'lib/TagLib_doc.rb', line 1584 def protectionEnabled() end |
#sampleRate ⇒ Object
Returns the sample rate in Hz.
1534 1535 |
# File 'lib/TagLib_doc.rb', line 1534 def sampleRate() end |
#samplesPerFrame ⇒ Object
Returns the number of frames per sample.
1549 1550 |
# File 'lib/TagLib_doc.rb', line 1549 def samplesPerFrame() end |
#version ⇒ Object
Returns the MPEG Version of the header.
1544 1545 |
# File 'lib/TagLib_doc.rb', line 1544 def version() end |