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.

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)



253
254
255
# File 'docs/taglib/base.rb', line 253

def bitrate
  @bitrate
end

#channelsInteger (readonly)

Returns number of channels

Returns:

  • (Integer)

    number of channels



259
260
261
# File 'docs/taglib/base.rb', line 259

def channels
  @channels
end

#lengthInteger (readonly)

Returns length of the file in seconds

Returns:

  • (Integer)

    length of the file in seconds



250
251
252
# File 'docs/taglib/base.rb', line 250

def length
  @length
end

#sample_rateInteger (readonly)

Returns sample rate in Hz

Returns:

  • (Integer)

    sample rate in Hz



256
257
258
# File 'docs/taglib/base.rb', line 256

def sample_rate
  @sample_rate
end