Module: AudioRating::AIFF
- Defined in:
- lib/audio_rating/aiff.rb
Overview
Base class for AIFF files.
Class Method Summary collapse
-
.get(path) ⇒ Integer, ...
Get a AIFF file’s embedded star-rating metadata if present.
Class Method Details
.get(path) ⇒ Integer, ...
Get a AIFF file’s embedded star-rating metadata if present.
Uses taglib-ruby class: rubydoc.info/gems/taglib-ruby/TagLib/RIFF/AIFF/File
16 17 18 19 20 21 22 |
# File 'lib/audio_rating/aiff.rb', line 16 def self.get(path) TagLib::RIFF::AIFF::File.open(path) do |file| next unless file&.id3v2_tag? AudioRating::ID3v2.get file.tag end end |