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)



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

def bitrate
  @bitrate
end

#channelsInteger (readonly)

Returns number of channels.

Returns:

  • (Integer)

    number of channels



262
263
264
# File 'docs/taglib/base.rb', line 262

def channels
  @channels
end

#length_in_millisecondsInteger (readonly)

Returns length of the file in milliseconds.

Returns:

  • (Integer)

    length of the file in milliseconds

Since:

  • 1.0.0



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

def length_in_milliseconds
  @length_in_milliseconds
end

#length_in_secondsInteger (readonly)

Returns length of the file in seconds.

Returns:

  • (Integer)

    length of the file in seconds

Since:

  • 1.0.0



248
249
250
# File 'docs/taglib/base.rb', line 248

def length_in_seconds
  @length_in_seconds
end

#sample_rateInteger (readonly)

Returns sample rate in Hz.

Returns:

  • (Integer)

    sample rate in Hz



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

def sample_rate
  @sample_rate
end