Class
Mp3Info
In: lib/mp3info.rb
Parent: Object

Methods

close, hastag1?, hastag1?, hastag2?, hastag2?, new, open, removetag1, removetag1, to_s,
Attributes

 [R]  bitrate

bitrate in kbps

 [R]  channel_mode

channel mode => "Stereo", "JStereo", "Dual Channel" or "Single Channel"

 [R]  error_protection

error protection => true or false

 [R]  filename

the original filename

 [R]  layer

layer = 1, 2, or 3

 [R]  length

length in seconds as a Float

 [R]  mpeg_version

mpeg version = 1 or 2

 [R]  samplerate

samplerate in Hz

 [RW]  tag1

id3v1 tag has a Hash. You can modify it, it will be written when calling "close" method.

 [R]  tag2

id3v2 tag as a Hash

 [R]  vbr

variable bitrate => true or false

Public Class methods
hastag1?(filename) src

Test the presence of an id3v1 tag in file filename

hastag2?(filename) src

Test the presence of an id3v2 tag in file filename

removetag1(filename) src

Remove id3v1 tag from filename

new(filename) src

Instantiate a new Mp3Info object with name filename

open(filename) {|m| ...} src

"block version" of Mp3Info::new()

Public Instance methods
removetag1() src

Remove id3v1 from mp3

hastag1?() src

Has file an id3v1 tag? true or false

hastag2?() src

Has file an id3v2 tag? true or false

close() src

Flush pending modifications to tags and close the file

to_s() src

inspect inside Mp3Info