Class: TagLib::Ogg::Vorbis::File

Inherits:
File
  • Object
show all
Defined in:
docs/taglib/vorbis.rb

Overview

The file class for .ogg and other .oga files.

Examples:

Reading Vorbis comments

TagLib::Ogg::Vorbis::File.open("file.oga") do |file|
  tag = file.tag
  puts tag.title
  fields = tag.field_list_map
  puts fields['DATE']
end

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from File

#close, #save

Constructor Details

#initialize(filename, read_properties = true) ⇒ File

Load an Ogg Vorbis file.

Parameters:

  • filename (String)
  • read_properties (Boolean) (defaults to: true)

    if audio properties should be read



29
30
# File 'docs/taglib/vorbis.rb', line 29

def initialize(filename, read_properties=true)
end

Class Method Details

.open(filename, read_properties = true) {|file| ... } ⇒ Object

Parameters:

  • filename (String)
  • read_properties (Boolean) (defaults to: true)

    if audio properties should be read

Yields:

Returns:

  • the return value of the block

Since:

  • 0.4.0



21
22
# File 'docs/taglib/vorbis.rb', line 21

def self.open(filename, read_properties=true)
end

Instance Method Details

#audio_propertiesTagLib::Ogg::Vorbis::Properties

Returns audio properties.



41
42
# File 'docs/taglib/vorbis.rb', line 41

def audio_properties
end

#tagTagLib::Ogg::XiphComment

Returns the VorbisComment tag.



35
36
# File 'docs/taglib/vorbis.rb', line 35

def tag
end