Ogg::Vorbis::Header 0.03 |
Date Added: July 08, 2010 | Visits: 500 |
|
||||||||
|
Ogg::Vorbis::Header is an object-oriented interface to Ogg Vorbis information and comment fields. SYNOPSIS use Ogg::Vorbis::Header; my $ogg = Ogg::Vorbis::Header->new("song.ogg"); while (my ($k, $v) = each %{$ogg->info}) { print "$k: $vn"; } foreach my $com ($ogg->comment_tags) { print "$com: $_n" foreach $ogg->comment($com); } $ogg->add_comments("good", "no", "ok", "yes"); $ogg->delete_comment("ok"); $ogg->write_vorbis; This module presents an object-oriented interface to Ogg Vorbis files which allows user to view Vorbis info and comments and to modify or add comments. CONSTRUCTORS new ($filename) Partially opens an Ogg Vorbis file to ensure it exists and is actually a Vorbis stream. It then closes the filehandle. It does not fill in the objects data fields. These fields will be automatically filled the first time they are accessed using the objects instance methods. Returns undef if there is a problem opening the file or the file is not valid Ogg Vorbis. load ([$filename]) Opens an Ogg Vorbis file, reads its information, and then closes the filehandle. Returns undef if there is a problem opening the file or the file is not valid Ogg Vorbis. This is both a constructor and an instance method. The filename is required in constructor context, but should be left out when you call this as an instance method on an object. When called as an instance method, it (re)loads the info and comment data from the file. This can be used to reset the state of the object if write_vorbis hasnt been called. Note that the path parameter is ignored in instance context. INSTANCE METHODS These methods may be called on actual Header objects, using the -> operator or indirect objects as you prefer. info ([$key]) Returns a reference to a hash containing format information about the Vorbis file. Hash fields are: version, channels, rate, bitrate_upper, bitrate_nominal, bitrate_lower, and bitrate_window, length. The bitrate_window value is currently unused by the vorbis codec. You can modify the referenced hash if you want, but I wouldnt suggest it. The optional key parameter allows you to extract a single value from the internal hash (passed by value, not reference). If the key is invalid, undef is returned. comment_tags () Returns an array holding the key values of each comment field. You can then use these values to access specific fields using comment. This may seem somewhat clunky at first but it will speed up most programs. In addition, it makes it easier to support the Ogg Vorbis comment standard which allows multiple fields with the same key. comment ($key) Returns a list of comments given a key. If the key does not exist, returns undef. add_comments ($key, $value, [$key, $value, ...]) Adds comments with the given keys and values. Takes an array of alternating keys and values as parameters. Keys and values should be valid ascii in the range 0x20 - 0x7D and the key should exclude 0x3D (=). This is a subset of the Vorbis standard which allows this range for the key field and all of utf8 for the value field. This will be fixed in future a release. If an odd-length array is passed in the routine will fail and return undef. Key and value will be trimmed of characters which do not match the format requirement. edit_comment ($key, $value, [$num]) Edits a given comment field. The optional num field is used to differentiate between two comments with the same key. If no num is supplied, the first value--as reported by comment--is modified. If the key or num are invalid, nothing is done and undef is returned. If all goes well, the old value is returned. delete_comment ($key, [$num]) Deletes the comment given by key. The optional num value can be used to specify which comment to delete, given duplicate keys. Leaving num out will result in only the first instance being deleted. Returns undef if key or num are invalid. If all goes well, the value of the deleted comment is returned. clear_comments ([@keys]) Deletes all of the comments which match keys in the input array or all of the comments in the stream if called with no arguments. Returns undef if any key is invalid, although all keys in the input array up until that key will be cleared. Returns true otherwise. write_vorbis () Write object to its backing file. No comment modifications will be seen in the file until this operation is performed. path () Returns the path/filename of the file the object represents..
|
| License: Freeware | Size: 32.77 KB |
|
Libraries
-
Db::DFC 0.4
Db::DFC is the Perls Object-oriented interface to Documentums DFC. SYNOPSIS use Db::DFC; $dfc = Db::DFC->new(); $DOCBASE = "docbase"; $USER = "user"; $PASSWORD = "passwd"; $DOMAIN = "domain"; $FILE = $0; $dfclient = DfClient->new();... |
81.92 KB | |
|
Libraries
-
ASNMTAP::Asnmtap 3.000.011
ASNMTAP::Asnmtap is an object-oriented Base Class to build modules that provides a nice object oriented interface for ASNMTAP. SYNOPSIS use ASNMTAP::Asnmtap; my $objectAsnmtap = ASNMTAP::Asnmtap->new ( _programName => test-asnmtap.pl,... |
1.6 MB | |
|
Libraries
-
ASNMTAP::Asnmtap::Plugins::Nagios 3.000.010
ASNMTAP::Asnmtap::Plugins::Nagios provides a nice object oriented interface for building Nagios compatible plugins. ASNMTAP::Asnmtap::Plugins::Nagios Subclass of ASNMTAP::Asnmtap::Plugins SYNOPSIS use ASNMTAP::Asnmtap::Plugins::Nagios; my... |
1.6 MB | |
|
Libraries
-
ASNMTAP::Asnmtap::Applications 3.000.009
ASNMTAP::Asnmtap::Applications is a Perl module that provides a nice object oriented interface for ASNMTAP Applications. ASNMTAP::Asnmtap::Applications Subclass of ASNMTAP::Asnmtap This version is still the old ASNMTAP Applications v3.000.001... |
1.6 MB | |
|
Libraries
-
CGI::XMLApplication 1.1.3
CGI::XMLApplication is an Object Oriented Interface for CGI Script Applications. SYNOPSIS use CGI::XMLApplication; $script = new CGI::XMLApplication; $script->setStylesheetPath( "the/path/to/the/stylesheets" ); # either this for simple... |
21.5 KB | |
|
Libraries
-
Gtk2::GladeXML::Simple 0.32
Gtk2::GladeXML::Simple is a clean object-oriented interface to Gtk2::GladeXML. SYNOPSIS package MyApp; use base qw( Gtk2::GladeXML::Simple ); sub new { my $class = shift; my $self = $class->SUPER::new( $gladefile ); return $self; }... |
10.24 KB | |
|
Libraries
-
Algorithm::Permute 0.06
Algorithm::Permute is a Perl module with handy and fast permutation with object oriented interface. SYNOPSIS use Algorithm::Permute; my $p = new Algorithm::Permute([a..d]); while (@res = $p->next) { print join(", ", @res), "n"; } my... |
10.24 KB | |
|
Libraries
-
CVS Perl library 0.07
CVS Perl library is a Perl module which is a wrapper around the CVS command with an object-oriented interface. Installation: To install this module type the following: perl Makefile.PL make make test make install. |
24.58 KB | |
|
Libraries
-
Domingo 1.4
Domingo is a simple, consistent, object-oriented easy-to-use interface to the Lotus Notes/Domino Java-API. Installation: To install Domingo on your Notes Client or Domino server, please download a binary distribution, extract the file... |
983.04 KB | |
|
Libraries
-
Object-Oriented JNI for .NET (low-level) 3.00.07
Object-Oriented JNI for .NET (low-level), Library for .NET Framework v.1.1. Supports Standard JNI interface (SUN/IBM/MS JDK1.1.x-1.6.x) for developing and running code in C#, MCpp, VB, J#.The main features available:- JNI code can be written only... |
1.36 MB |
|
Programming
-
RailsTidy 0.1
RailsTidy project is a plugin for Ruby On Rails.. |
11.26 KB | |
|
Programming
-
Strings edit 1.9
Strings edit is a library that provides I/O facilities for integer, floating-point, Roman numbers, and strings. Both input and output subroutines support string pointers for consequent stream processing. The output can be aligned in a fixed size... |
54.27 KB | |
|
Programming
-
BScript 0.3
BScript is a (yet another) BASIC interpreter. It is free software and open-sourced, licensed under the terms of the GNU General Public License version 2 or later. You can use BScript to teach BASIC to your students, write understandable shell... |
112.64 KB | |
|
Programming
-
Kits JavaScript Brainf*ck Interpreter 0.01
Kits JavaScript Brainf*ck Interpreter is a rather fast interpreter for the Brainf*ck esoteric programming language.. Kit's JavaScript Brainfuck Interpreter v0.01 |
5.12 KB | |
|
Programming
-
dis6502 0.12
dis6502 is a flow-tracing disassembler for the 6502, originally written by Robert Bond and supporting Atari binary files. Robert posted dis6502 to the Usenet newsgroup net.sources on 9-Oct-1986, and to comp.sources.unix 7-Jun-1988. Udi... |
19.46 KB | |
|
Libraries
-
Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;... |
8.19 KB | |
|
Libraries
-
sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also... |
10.24 KB | |
|
Libraries
-
App::SimpleScan::Substitution::Line 2.02
App::SimpleScan::Substitution::Line is a line with optional fixed variable values. SYNOPSIS my $line = App::SimpleScan::Substitution::Line->new(" this "); # Use only this value when substituting " ". $line->fix(substituite =>... |
54.27 KB | |
|
Libraries
-
PDL::Graphics::TriD 2.4.3
PDL::Graphics::TriD is a PDL 3D interface. SYNOPSIS use PDL::Graphics::TriD; # After each graph, let the user rotate is and # wait for him to press q, then make new graph line3d($coords); # $coords = (3,n,...) line3d($coords,$colors); #... |
2.1 MB | |
|
Libraries
-
SmartColorWell 1.2
SmartColorWell is a cross-platform open-source ColorWell class for REALbasic 4 or greater. The SmartColorWell control stores a color value and displays that color in a simulated BevelButton that when pressed allows the user to change the color... |
21.5 KB |
