Class: TagLib::MP4::File
Overview
The file class for '.m4a' files.
Class Method Summary collapse
-
.open(filename, read_properties = true) {|file| ... } ⇒ Object
Creates a new file and passes it to the provided block, closing the file automatically at the end of the block.
Note that after the block is done, the file is closed and all memory is released for objects read from the file (basically everything from the
TagLib
namespace).Using
open
is preferable to usingnew
and then manuallyclose
.
Instance Method Summary collapse
- #audio_properties ⇒ TagLib::MP4::Properties
-
#initialize(filename, read_properties = true) ⇒ TagLib::MP4::File
constructor
Load an M4A file.
-
#mp4_tag? ⇒ Boolean
file has a Metadata Item List (ilst) atom.
-
#tag ⇒ TagLib::MP4::Tag?
Returns the MP4 tag in the file.
Methods inherited from File
Constructor Details
#initialize(filename, read_properties = true) ⇒ TagLib::MP4::File
Load an M4A file.
70 71 |
# File 'docs/taglib/mp4.rb', line 70 def initialize(filename, read_properties=true) end |
Class Method Details
.open(filename, read_properties = true) {|file| ... } ⇒ Object
Creates a new file and passes it to the provided block, closing the file automatically at the end of the block.
Note that after the block is done, the file is closed and
all memory is released for objects read from the file
(basically everything from the TagLib
namespace).
Using open
is preferable to using new
and then
manually close
.
61 62 |
# File 'docs/taglib/mp4.rb', line 61 def self.open(filename, read_properties=true) end |
Instance Method Details
#audio_properties ⇒ TagLib::MP4::Properties
81 82 |
# File 'docs/taglib/mp4.rb', line 81 def audio_properties end |
#mp4_tag? ⇒ Boolean
file has a Metadata Item List (ilst) atom.
88 89 |
# File 'docs/taglib/mp4.rb', line 88 def mp4_tag? end |
#tag ⇒ TagLib::MP4::Tag?
Returns the MP4 tag in the file
77 78 |
# File 'docs/taglib/mp4.rb', line 77 def tag end |