Class: TagLib::MPEG::Properties
- Inherits:
-
AudioProperties
- Object
- AudioProperties
- TagLib::MPEG::Properties
- Defined in:
- lib/TagLib_doc.rb
Overview
An implementation of audio property reading for MP3. .
This reads the data from an MPEG Layer III stream found in the AudioProperties API.
Instance Method Summary collapse
-
#bitrate ⇒ Object
Returns the most appropriate bit rate for the file in kb/s.
-
#channelMode ⇒ Object
Returns the channel mode for this frame.
-
#channels ⇒ Object
Returns the number of audio channels.
-
#isCopyrighted ⇒ Object
Returns true if the copyrighted bit is set.
-
#isOriginal ⇒ Object
Returns true if the "original" bit is set.
-
#layer ⇒ Object
Returns the layer version.
-
#length ⇒ Object
Returns the length of the file in seconds.
-
#protectionEnabled ⇒ Object
Returns true if the MPEG protection bit is enabled.
-
#sampleRate ⇒ Object
Returns the sample rate in Hz.
-
#version ⇒ Object
Returns the MPEG Version of the file.
-
#xingHeader ⇒ Object
Returns a pointer to the XingHeader if one exists or null if no XingHeader was found.
Instance Method Details
#bitrate ⇒ Object
Returns the most appropriate bit rate for the file in kb/s. For constant bitrate formats this is simply the bitrate of the file. For variable bitrate formats this is either the average or nominal bitrate.
1511 1512 |
# File 'lib/TagLib_doc.rb', line 1511 def bitrate() end |
#channelMode ⇒ Object
Returns the channel mode for this frame.
1486 1487 |
# File 'lib/TagLib_doc.rb', line 1486 def channelMode() end |
#channels ⇒ Object
Returns the number of audio channels.
1481 1482 |
# File 'lib/TagLib_doc.rb', line 1481 def channels() end |
#isCopyrighted ⇒ Object
Returns true if the copyrighted bit is set.
1491 1492 |
# File 'lib/TagLib_doc.rb', line 1491 def isCopyrighted() end |
#isOriginal ⇒ Object
Returns true if the "original" bit is set.
1501 1502 |
# File 'lib/TagLib_doc.rb', line 1501 def isOriginal() end |
#layer ⇒ Object
Returns the layer version. This will be between the values 1-3.
1496 1497 |
# File 'lib/TagLib_doc.rb', line 1496 def layer() end |
#length ⇒ Object
Returns the length of the file in seconds.
1506 1507 |
# File 'lib/TagLib_doc.rb', line 1506 def length() end |
#protectionEnabled ⇒ Object
Returns true if the MPEG protection bit is enabled.
1516 1517 |
# File 'lib/TagLib_doc.rb', line 1516 def protectionEnabled() end |
#sampleRate ⇒ Object
Returns the sample rate in Hz.
1471 1472 |
# File 'lib/TagLib_doc.rb', line 1471 def sampleRate() end |
#version ⇒ Object
Returns the MPEG Version of the file.
1476 1477 |
# File 'lib/TagLib_doc.rb', line 1476 def version() end |
#xingHeader ⇒ Object
Returns a pointer to the XingHeader if one exists or null if no XingHeader was found.
1466 1467 |
# File 'lib/TagLib_doc.rb', line 1466 def xingHeader() end |