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
FLAC::Properties, MP4::Properties, MPEG::Properties, Ogg::Vorbis::Properties, RIFF::AIFF::Properties, RIFF::WAV::Properties
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_in_milliseconds ⇒ Integer
readonly
Length of the file in milliseconds.
-
#length_in_seconds ⇒ 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).
256 257 258 |
# File 'docs/taglib/base.rb', line 256 def bitrate @bitrate end |
#channels ⇒ Integer (readonly)
Returns number of channels.
262 263 264 |
# File 'docs/taglib/base.rb', line 262 def channels @channels end |
#length_in_milliseconds ⇒ Integer (readonly)
Returns length of the file in milliseconds.
253 254 255 |
# File 'docs/taglib/base.rb', line 253 def length_in_milliseconds @length_in_milliseconds end |
#length_in_seconds ⇒ Integer (readonly)
Returns length of the file in seconds.
248 249 250 |
# File 'docs/taglib/base.rb', line 248 def length_in_seconds @length_in_seconds end |
#sample_rate ⇒ Integer (readonly)
Returns sample rate in Hz.
259 260 261 |
# File 'docs/taglib/base.rb', line 259 def sample_rate @sample_rate end |