GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  OGG::VORBIS::HEADER::PUREPERL (3)

.ds Aq ’

NAME

Ogg::Vorbis::Header::PurePerl - An object-oriented interface to Ogg Vorbis information and comment fields, implemented entirely in Perl. Intended to be a drop in replacement for Ogg::Vobis::Header.

Unlike Ogg::Vorbis::Header, this module will go ahead and fill in all of the information fields as soon as you construct the object. In other words, the "new" and "load" constructors have identical behavior.

CONTENTS

SYNOPSIS



        use Ogg::Vorbis::Header::PurePerl;
        my $ogg = Ogg::Vorbis::Header::PurePerl->new("song.ogg");
        while (my ($k, $v) = each %{$ogg->info}) {
                print "$k: $v\n";
        }
        foreach my $com ($ogg->comment_tags) {
                print "$com: $_\n" foreach $ogg->comment($com);
        }



DESCRIPTION

This module is intended to be a drop in replacement for Ogg::Vorbis::Header, implemented entirely in Perl. It provides an object-oriented interface to Ogg Vorbis information and comment fields. (NOTE: This module currently supports only read operations).

CONSTRUCTORS

CWnew ($filename)

Opens an Ogg Vorbis file, ensuring that it exists and is actually an Ogg Vorbis stream. This method does not actually read any of the information or comment fields, and closes the file immediately.

CWload ([$filename])

Opens an Ogg Vorbis file, ensuring that it exists and is actually an Ogg Vorbis stream, then loads the information and comment fields. This method can also be used without a filename to load the information and fields of an already constructed instance.

INSTANCE METHODS

CWinfo ([$key])

Returns a hashref containing information about the Ogg Vorbis file from the file’s information header. Hash fields are: version, channels, rate, bitrate_upper, bitrate_nominal, bitrate_lower, bitrate_window, and length. The bitrate_window value is not currently used by the vorbis codec, and will always be -1.

The optional parameter, key, allows you to retrieve a single value from the object’s hash. Returns undef if the key is not found.

CWcomment_tags ()

Returns an array containing the key values for the comment fields. These values can then be passed to comment to retrieve their values.

CWcomment ($key)

Returns an array of comment values associated with the given key.

CWadd_comments ($key, $value, [$key, $value, ...])

Unimplemented.

CWedit_comment ($key, $value, [$num])

Unimplemented.

CWdelete_comment ($key, [$num])

Unimplemented.

CWclear_comments ([@keys])

Unimplemented.

CWwrite_vorbis ()

Unimplemented.

CWpath ()

Returns the path/filename of the file the object represents.

AUTHOR

Andrew Molloy <amolloy@kaizolabs.com>

Dan Sully <daniel | at | cpan.org>

COPYRIGHT

Copyright (c) 2003, Andrew Molloy. All Rights Reserved.

Copyright (c) 2005-2008, Dan Sully. All Rights Reserved.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. A copy of this license is included with this module (LICENSE.GPL).

SEE ALSO

Ogg::Vorbis::Header, Ogg::Vorbis::Decoder
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 PUREPERL (3) 2008-11-09

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.