Class: TagLib::AudioProperties Abstract
- Inherits:
-
Object
- Object
- TagLib::AudioProperties
- Defined in:
- docs/taglib/base.rb
Overview
This class is abstract.
Base class for audio properties.
Direct Known Subclasses
Constant Summary collapse
- Fast =
0
- Average =
1
- Accurate =
2
Instance Attribute Summary collapse
-
#bitrate ⇒ Integer
readonly
Bit rate in kb/s (kilobit per second).
-
#channels ⇒ Integer
readonly
Number of channels.
-
#length ⇒ Integer
readonly
Length of the file in seconds.
-
#sample_rate ⇒ Integer
readonly
Sample rate in Hz.
Instance Attribute Details
#bitrate ⇒ Integer (readonly)
Returns bit rate in kb/s (kilobit per second).
145 146 147 |
# File 'docs/taglib/base.rb', line 145 def bitrate @bitrate end |
#channels ⇒ Integer (readonly)
Returns number of channels.
151 152 153 |
# File 'docs/taglib/base.rb', line 151 def channels @channels end |
#length ⇒ Integer (readonly)
Returns length of the file in seconds.
142 143 144 |
# File 'docs/taglib/base.rb', line 142 def length @length end |
#sample_rate ⇒ Integer (readonly)
Returns sample rate in Hz.
148 149 150 |
# File 'docs/taglib/base.rb', line 148 def sample_rate @sample_rate end |