Class: TagLib::RIFF::WAV::File
Overview
The file class for .wav
files.
Constant Summary collapse
- NoTags =
0x0000
- ID3v1 =
0x0001
- ID3v2 =
0x0002
- APE =
0x0004
- AllTags =
0xffff
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::RIFF::WAV::Properties
Returns audio properties.
-
#id3v2_tag ⇒ TagLib::ID3v2::Tag
Returns the ID3v2 tag.
-
#initialize(filename, read_properties = true) ⇒ File
constructor
Load a WAV file.
-
#strip(tags = TagLib::RIFF::WAV::File::AllTags) ⇒ void
Remove the tags matching the specified OR-ed types.
-
#tag ⇒ TagLib::ID3v2::Tag
Returns the ID3v2 tag.
Methods inherited from File
Constructor Details
#initialize(filename, read_properties = true) ⇒ File
Load a WAV file.
49 50 |
# File 'docs/taglib/wav.rb', line 49 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
.
41 42 |
# File 'docs/taglib/wav.rb', line 41 def self.open(filename, read_properties=true) end |
Instance Method Details
#audio_properties ⇒ TagLib::RIFF::WAV::Properties
Returns audio properties.
69 70 |
# File 'docs/taglib/wav.rb', line 69 def audio_properties end |
#id3v2_tag ⇒ TagLib::ID3v2::Tag
Returns the ID3v2 tag.
63 64 |
# File 'docs/taglib/wav.rb', line 63 def id3v2_tag end |
#strip(tags = TagLib::RIFF::WAV::File::AllTags) ⇒ void
This method returns an undefined value.
Remove the tags matching the specified OR-ed types.
78 79 |
# File 'docs/taglib/wav.rb', line 78 def strip(=TagLib::RIFF::WAV::File::AllTags) end |
#tag ⇒ TagLib::ID3v2::Tag
Returns the ID3v2 tag.
55 56 |
# File 'docs/taglib/wav.rb', line 55 def tag end |