Class: TagLib::RIFF::WAV::Properties

Inherits:
AudioProperties show all
Defined in:
docs/taglib/wav.rb

Overview

Since:

  • 0.7.0

Constant Summary

Constants inherited from AudioProperties

AudioProperties::Accurate, AudioProperties::Average, AudioProperties::Fast

Instance Attribute Summary collapse

Attributes inherited from AudioProperties

#bitrate, #channels, #sample_rate

Instance Attribute Details

#bits_per_sampleInteger (readonly)

Returns Number of bits per audio sample.

Returns:

  • (Integer)

    Number of bits per audio sample.

Since:

  • 1.0.0


89
90
91
# File 'docs/taglib/wav.rb', line 89

def bits_per_sample
  @bits_per_sample
end

#formatInteger (readonly)

0 for unknown, 1 for PCM, 2 for ADPCM, 3 for 32/64-bit IEEE754, and so forth. For further information, refer to the WAVE Form Registration Numbers in RFC 2361.

Returns:

  • (Integer)

    The format ID of the file.

Since:

  • 1.0.0


113
114
115
# File 'docs/taglib/wav.rb', line 113

def format
  @format
end

#length_in_millisecondsInteger (readonly)

Returns length of the file in milliseconds.

Returns:

  • (Integer)

    length of the file in milliseconds

Since:

  • 1.0.0


104
105
106
# File 'docs/taglib/wav.rb', line 104

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


99
100
101
# File 'docs/taglib/wav.rb', line 99

def length_in_seconds
  @length_in_seconds
end

#sample_framesInteger (readonly)

Returns Number of sample frames.

Returns:

  • (Integer)

    Number of sample frames.

Since:

  • 1.0.0


94
95
96
# File 'docs/taglib/wav.rb', line 94

def sample_frames
  @sample_frames
end