Class: TagLib::AudioProperties

Inherits:
Object
  • Object
show all
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.

Instance Method Summary collapse

Instance Method Details

#bitrateObject

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

#channelsObject

Returns the number of audio channels.



112
113
# File 'lib/TagLib_doc.rb', line 112

def channels()
end

#lengthObject

Returns the length of the file in seconds.



117
118
# File 'lib/TagLib_doc.rb', line 117

def length()
end

#sampleRateObject

Returns the sample rate in Hz.



107
108
# File 'lib/TagLib_doc.rb', line 107

def sampleRate()
end