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


68
69
70
# File 'docs/taglib/aiff.rb', line 68

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


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

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


80
81
82
# File 'docs/taglib/aiff.rb', line 80

def compression_type
  @compression_type
end

#sample_framesInteger (readonly)

Returns Number of sample frames.

Returns:

  • (Integer)

    Number of sample frames.

Since:

  • 1.0.0


73
74
75
# File 'docs/taglib/aiff.rb', line 73

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


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

def aiff_c?
end