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)


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

def bitrate
  @bitrate
end

#channelsInteger (readonly)

Returns number of channels.

Returns:

  • (Integer)

    number of channels


266
267
268
# File 'docs/taglib/base.rb', line 266

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


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

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


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

def length_in_seconds
  @length_in_seconds
end

#sample_rateInteger (readonly)

Returns sample rate in Hz.

Returns:

  • (Integer)

    sample rate in Hz


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

def sample_rate
  @sample_rate
end