Class: TagLib::RIFF::WAV::Properties
- Inherits:
-
AudioProperties
- Object
- AudioProperties
- TagLib::RIFF::WAV::Properties
- Defined in:
- docs/taglib/wav.rb
Overview
Constant Summary
Constants inherited from AudioProperties
AudioProperties::Accurate, AudioProperties::Average, AudioProperties::Fast
Instance Attribute Summary collapse
-
#bits_per_sample ⇒ Integer
readonly
Number of bits per audio sample.
-
#format ⇒ Integer
readonly
0 for unknown, 1 for PCM, 2 for ADPCM, 3 for 32/64-bit IEEE754, and so forth.
-
#length_in_milliseconds ⇒ Integer
readonly
Length of the file in milliseconds.
-
#length_in_seconds ⇒ Integer
readonly
Length of the file in seconds.
-
#sample_frames ⇒ Integer
readonly
Number of sample frames.
Attributes inherited from AudioProperties
#bitrate, #channels, #sample_rate
Instance Attribute Details
#bits_per_sample ⇒ Integer (readonly)
Returns Number of bits per audio sample.
86 87 88 |
# File 'docs/taglib/wav.rb', line 86 def bits_per_sample @bits_per_sample end |
#format ⇒ Integer (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.
110 111 112 |
# File 'docs/taglib/wav.rb', line 110 def format @format end |
#length_in_milliseconds ⇒ Integer (readonly)
Returns length of the file in milliseconds.
101 102 103 |
# File 'docs/taglib/wav.rb', line 101 def length_in_milliseconds @length_in_milliseconds end |
#length_in_seconds ⇒ Integer (readonly)
Returns length of the file in seconds.
96 97 98 |
# File 'docs/taglib/wav.rb', line 96 def length_in_seconds @length_in_seconds end |
#sample_frames ⇒ Integer (readonly)
Returns Number of sample frames.
91 92 93 |
# File 'docs/taglib/wav.rb', line 91 def sample_frames @sample_frames end |