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



86
87
88
# File 'docs/taglib/wav.rb', line 86

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



110
111
112
# File 'docs/taglib/wav.rb', line 110

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



101
102
103
# File 'docs/taglib/wav.rb', line 101

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



96
97
98
# File 'docs/taglib/wav.rb', line 96

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



91
92
93
# File 'docs/taglib/wav.rb', line 91

def sample_frames
  @sample_frames
end