Class: TagLib::Ogg::Vorbis::File
- Defined in:
- docs/taglib/vorbis.rb
Overview
The file class for .ogg
and other .oga
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::Ogg::Vorbis::Properties
Returns audio properties.
-
#initialize(filename, read_properties = true) ⇒ File
constructor
Load an Ogg Vorbis file.
-
#tag ⇒ TagLib::Ogg::XiphComment
Returns the VorbisComment tag.
Methods inherited from File
Constructor Details
#initialize(filename, read_properties = true) ⇒ File
Load an Ogg Vorbis file.
28 29 |
# File 'docs/taglib/vorbis.rb', line 28 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
.
20 21 |
# File 'docs/taglib/vorbis.rb', line 20 def self.open(filename, read_properties=true) end |
Instance Method Details
#audio_properties ⇒ TagLib::Ogg::Vorbis::Properties
Returns audio properties.
40 41 |
# File 'docs/taglib/vorbis.rb', line 40 def audio_properties end |
#tag ⇒ TagLib::Ogg::XiphComment
Returns the VorbisComment tag.
34 35 |
# File 'docs/taglib/vorbis.rb', line 34 def tag end |