Class: TagLib::RIFF::AIFF::Properties

Inherits:
AudioProperties show all
Defined in:
docs/taglib/aiff.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, #length_in_milliseconds, #length_in_seconds, #sample_rate

Instance Method Summary collapse

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



66
67
68
# File 'docs/taglib/aiff.rb', line 66

def bits_per_sample
  @bits_per_sample
end

#compression_nameString (readonly)

If the file is in AIFF format, always returns an empty string.

Returns:

  • (String)

    Returns the concrete compression name of the AIFF-C file.

Since:

  • 1.0.0



84
85
86
# File 'docs/taglib/aiff.rb', line 84

def compression_name
  @compression_name
end

#compression_typeString (readonly)

For example, "NONE" for not compressed, "ACE2" for ACE 2-to-1. If the file is in AIFF format, always returns an empty string.

Returns:

  • (String)

    The compression type of the AIFF-C file.

Since:

  • 1.0.0



78
79
80
# File 'docs/taglib/aiff.rb', line 78

def compression_type
  @compression_type
end

#sample_framesInteger (readonly)

Returns Number of sample frames.

Returns:

  • (Integer)

    Number of sample frames.

Since:

  • 1.0.0



71
72
73
# File 'docs/taglib/aiff.rb', line 71

def sample_frames
  @sample_frames
end

Instance Method Details

#aiff_c?Boolean

Returns True if the file is in AIFF-C format, false if AIFF format.

Returns:

  • (Boolean)

    True if the file is in AIFF-C format, false if AIFF format.

Since:

  • 1.0.0



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

def aiff_c?
end