Class Mp3Info |
|
Methods |
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] | hastag1 | Moved hastag1? and hastag2? to be booleans |
[R] | hastag2 | Moved hastag1? and hastag2? to be booleans |
[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 |
[R] | tag | a sort of "universal" tag, regardless of the tag version, 1 or 2, with the same keys as @tag1 |
[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
new(filename) src |
Instantiate a new Mp3Info object with name filename
open(filename) {|m| ...} src |
"block version" of Mp3Info::new()
removetag1(filename) src |
Remove id3v1 tag from filename
Public Instance methods |
close() src |
Flush pending modifications to tags and close the file
hastag1?() src |
Has file an id3v1 tag? true or false
hastag2?() src |
Has file an id3v2 tag? true or false
hastag?() src |
Has file an id3v1 or v2 tag? true or false
removetag1() src |
Remove id3v1 from mp3
to_s() src |
inspect inside Mp3Info