Class TagLib::Ogg::Speex::Properties
In: lib/TagLib_doc.rb
Parent: TagLib::AudioProperties
AudioProperties Properties Properties Properties Properties Properties Properties Properties File File File File File File File Tag Tag Tag Tag XiphComment File File File Frame AttachedPictureFrame CommentsFrame Header ByteVectorList ByteVector FrameList ItemListMap GenreMap FileRef FrameListMap StringList FieldListMap String Item Footer FrameFactory GeneralEncapsulatedObjectFrame Page PageHeader XingHeader Header MPC APE Vorbis ID3v1 FLAC ID3v2 Flac Speex Ogg MPEG WavPack TrueAudio TagLib dot/f_3.png

An implementation of audio property reading for Ogg Speex. .

This reads the data from an Ogg Speex stream found in the AudioProperties API.


Public Instance methods

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.


# File lib/TagLib_doc.rb, line 1685
              def bitrate()

Returns the number of audio channels.


# File lib/TagLib_doc.rb, line 1680
              def channels()

Returns the length of the file in seconds.


# File lib/TagLib_doc.rb, line 1700
              def length()

Returns the sample rate in Hz.


# File lib/TagLib_doc.rb, line 1695
              def sampleRate()

Returns the Speex version, currently "0" (as specified by the spec).


# File lib/TagLib_doc.rb, line 1690
              def speexVersion()