Class: WahWah::RiffTag

Inherits:
Tag
  • Object
show all
Extended by:
TagDelegate
Defined in:
lib/wahwah/riff_tag.rb

Constant Summary collapse

INFO_ID_MAPPING =
{
  INAM: :title,
  TITL: :title,
  IART: :artist,
  IPRD: :album,
  ICMT: :comment,
  ICRD: :year,
  YEAR: :year,
  IGNR: :genre,
  TRCK: :track
}
CHANNEL_MODE_INDEX =
%w[Mono Stereo]

Constants inherited from Tag

Tag::INSPECT_ATTRIBUTES, Tag::INTEGER_ATTRIBUTES

Instance Method Summary collapse

Methods included from TagDelegate

tag_delegate

Methods inherited from Tag

#images, #initialize, #inspect

Constructor Details

This class inherits a constructor from WahWah::Tag

Instance Method Details

#channel_modeObject



37
38
39
# File 'lib/wahwah/riff_tag.rb', line 37

def channel_mode
  CHANNEL_MODE_INDEX[@channel - 1]
end