Class: TagLib::AudioProperties
- Inherits:
-
Object
- Object
- TagLib::AudioProperties
- Defined in:
- lib/TagLib_doc.rb
Overview
A simple, abstract interface to common audio properties. .
The values here are common to most audio formats. For more specific, codec dependant values, please see see the subclasses APIs. This is meant to compliment the TagLib::File and TagLib::Tag APIs in providing a simple interface that is sufficient for most applications.
Direct Known Subclasses
FLAC::Properties, MPC::Properties, MPEG::Properties, Ogg::Speex::Properties, TrueAudio::Properties, Vorbis::Properties, WavPack::Properties
Instance Method Summary collapse
-
#bitrate ⇒ Object
Returns the most appropriate bit rate for the file in kb/s.
-
#channels ⇒ Object
Returns the number of audio channels.
-
#length ⇒ Object
Returns the length of the file in seconds.
-
#sampleRate ⇒ Object
Returns the sample rate in Hz.
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.
122 123 |
# File 'lib/TagLib_doc.rb', line 122 def bitrate() end |
#channels ⇒ Object
Returns the number of audio channels.
112 113 |
# File 'lib/TagLib_doc.rb', line 112 def channels() end |
#length ⇒ Object
Returns the length of the file in seconds.
117 118 |
# File 'lib/TagLib_doc.rb', line 117 def length() end |
#sampleRate ⇒ Object
Returns the sample rate in Hz.
107 108 |
# File 'lib/TagLib_doc.rb', line 107 def sampleRate() end |