Class: TagLib::AudioProperties Abstract

Inherits:
Object
  • Object
show all
Defined in:
docs/taglib/base.rb

Overview

This class is abstract.

Base class for audio properties.

Direct Known Subclasses

MPEG::Properties, Ogg::Vorbis::Properties

Constant Summary collapse

Fast =
0
Average =
1
Accurate =
2

Instance Attribute Summary collapse

Instance Attribute Details

#bitrateInteger (readonly)

Returns bit rate in kb/s (kilobit per second).

Returns:

  • (Integer)

    bit rate in kb/s (kilobit per second)



145
146
147
# File 'docs/taglib/base.rb', line 145

def bitrate
  @bitrate
end

#channelsInteger (readonly)

Returns number of channels.

Returns:

  • (Integer)

    number of channels



151
152
153
# File 'docs/taglib/base.rb', line 151

def channels
  @channels
end

#lengthInteger (readonly)

Returns length of the file in seconds.

Returns:

  • (Integer)

    length of the file in seconds



142
143
144
# File 'docs/taglib/base.rb', line 142

def length
  @length
end

#sample_rateInteger (readonly)

Returns sample rate in Hz.

Returns:

  • (Integer)

    sample rate in Hz



148
149
150
# File 'docs/taglib/base.rb', line 148

def sample_rate
  @sample_rate
end