File_Ogg
[ class tree: File_Ogg ] [ index: File_Ogg ] [ all elements ]

Class: File_Ogg_Vorbis

Source Location: /File_Ogg-0.3.0/File/Ogg/Vorbis.php

Class Overview

File_Ogg_Bitstream
   |
   --File_Ogg_Media
      |
      --File_Ogg_Vorbis

Extract the contents of a Vorbis logical stream.


Author(s):

Version:

  • CVS: $Id: Vorbis.php,v 1.14 2008/01/31 04:41:44 tstarling Exp $

Copyright:

  • David Grant <david@grant.org.uk>, Tim Starling <tstarling@wikimedia.org>

Methods


Inherited Variables

Inherited Methods

Class: File_Ogg_Media

File_Ogg_Media::getCommentList()
Provides a list of the comments extracted from the Vorbis stream.
File_Ogg_Media::getComments()
Get the entire comments array.
File_Ogg_Media::getField()
Provides an interface to the numerous comments located with a Vorbis stream.
File_Ogg_Media::getHeader()
Get an associative array containing header information about the stream
File_Ogg_Media::getIdentificationString()
Get the 6-byte identification string expected in the common header
File_Ogg_Media::getLength()
Get the length of the stream in seconds
File_Ogg_Media::getType()
Get a short string describing the type of the stream
File_Ogg_Media::getVendor()
Vendor of software used to encode this stream.

Class: File_Ogg_Bitstream

File_Ogg_Bitstream::getGroup()
Get the multiplexed group ID
File_Ogg_Bitstream::getSerial()
Gives the serial number of this stream.
File_Ogg_Bitstream::getSize()
Gives the size (in bits) of this stream.

Class Details

[line 86]
Extract the contents of a Vorbis logical stream.

This class provides an interface to a Vorbis logical stream found within a Ogg stream. A variety of information may be extracted, including comment tags, running time, and bitrate. For more information, please see the following links.



[ Top ]


Method Detail

getAlbum   [line 462]

string getAlbum( )

The album or collection from which this track comes.
  • Access: public

[ Top ]

getArtist   [line 511]

string getArtist( )

The artist responsible for this track.

This function returns the name of the artist responsible for this recording, which may be either a solo-artist, duet or group.

  • Access: public

[ Top ]

getBitrate   [line 356]

float getBitrate( )

Gives the most accurate bitrate measurement from this stream.

This function returns the most accurate bitrate measurement for this recording, depending on values set in the stream header.

  • Access: public

[ Top ]

getBitrates   [line 342]

array getBitrates( )

Various bitrate measurements

Gives an array of the values of four different types of bitrates for this stream. The nominal, maximum and minimum values are found within the file, whereas the average value is computed.

  • Access: public

[ Top ]

getChannels   [line 313]

int getChannels( )

Number of channels used in this stream

This function returns the number of channels used in this stream. This can range from 1 to 255, but will likely be 2 (stereo) or 1 (mono).


[ Top ]

getContact   [line 734]

string getContact( )

  • Access: public

[ Top ]

getCopyright   [line 557]

string getCopyright( )

The copyright attribution for this track.
  • Access: public

[ Top ]

getDate   [line 687]

string getDate( )

The date of the recording of this track.

This function returns the date on which this recording was made. There is no specification for the format of this date.

  • Access: public

[ Top ]

getDescription   [line 635]

string getDescription( )

A short description of the contents of this track.

This function returns a short description of this track, which might contain extra information that doesn't fit anywhere else.

  • Access: public

[ Top ]

getEncoderVersion   [line 296]

int getEncoderVersion( )

Version of the Vorbis specification referred to in the encoding of this stream.

This method returns the version of the Vorbis specification (currently 0 (ZERO)) referred to by the encoder of this stream. The Vorbis specification is well- defined, and thus one does not expect this value to change on a frequent basis.

  • Access: public

[ Top ]

getGenre   [line 661]

string getGenre( )

The genre of this recording (e.g. Rock)

This function returns the genre of this recording. There are no pre- defined genres, so this is completely up to the tagging software.

  • Access: public

[ Top ]

getHeader   [line 782]

array getHeader( )

Get an associative array containing header information about the stream
  • Access: public

Overrides File_Ogg_Media::getHeader() (Get an associative array containing header information about the stream)
[ Top ]

getIdentificationString   [line 282]

void getIdentificationString( )

Get the 6-byte identification string expected in the common header

Overrides File_Ogg_Media::getIdentificationString() (Get the 6-byte identification string expected in the common header)
[ Top ]

getIsrc   [line 760]

string getIsrc( )

International Standard Recording Code.

Returns the International Standard Recording Code. This code can be validated using the Validate_ISPN package.

  • Access: public

[ Top ]

getLength   [line 372]

int getLength( )

Gives the length (in seconds) of this stream.
  • Access: public

Overrides File_Ogg_Media::getLength() (Get the length of the stream in seconds)
[ Top ]

getLicense   [line 583]

string getLicense( )

The rights of distribution for this track.

This funtion returns the license for this track, and may include copyright information, or a creative commons statement.

  • Access: public

[ Top ]

getLocation   [line 713]

string getLocation( )

Where this recording was made.

This function returns where this recording was made, such as a recording studio, or concert venue.

  • Access: public

[ Top ]

getOrganization   [line 609]

string getOrganization( )

The organisation responsible for this track.

This function returns the name of the organisation responsible for the production of this track, such as the record label.

  • Access: public

[ Top ]

getPerformer   [line 534]

string getPerformer( )

The performer of this track, such as an orchestra
  • Access: public

[ Top ]

getSampleRate   [line 327]

int getSampleRate( )

Samples per second.

This function returns the number of samples used per second in this recording. Probably the most common value here is 44,100.

  • Access: public

[ Top ]

getTitle   [line 416]

string getTitle( )

The title of this track, e.g. "What's Up Pussycat?".
  • Access: public

[ Top ]

getTrackNumber   [line 485]

string getTrackNumber( )

The number of this track if it is part of a larger collection.
  • Access: public

[ Top ]

getType   [line 181]

void getType( )

Get a short string describing the type of the stream

Overrides File_Ogg_Media::getType() (Get a short string describing the type of the stream)
[ Top ]

getVersion   [line 439]

string getVersion( )

The version of the track, such as a remix.
  • Access: public

[ Top ]

isMono   [line 383]

boolean isMono( )

States whether this logical stream was encoded in mono.
  • Access: public

[ Top ]

isQuadrophonic   [line 405]

boolean isQuadrophonic( )

States whether this logical stream was encoded in quadrophonic sound.
  • Access: public

[ Top ]

isStereo   [line 394]

boolean isStereo( )

States whether this logical stream was encoded in stereo.
  • Access: public

[ Top ]

setAlbum   [line 474]

void setAlbum( string $album, [boolean $replace = true])

Set the album or collection for this track.
  • Access: public

Parameters:

string   $album   — 
boolean   $replace   — 

[ Top ]

setArtist   [line 523]

void setArtist( string $artist, [boolean $replace = true])

Set the artist of this track.
  • Access: public

Parameters:

string   $artist   — 
boolean   $replace   — 

[ Top ]

setContact   [line 746]

void setContact( string $contact, [boolean $replace = true])

Set the contact information for this track.
  • Access: public

Parameters:

string   $contact   — 
boolean   $replace   — 

[ Top ]

setCopyright   [line 569]

void setCopyright( string $copyright, [boolean $replace = true])

Set the copyright attribution for this track.
  • Access: public

Parameters:

string   $copyright   — 
boolean   $replace   — 

[ Top ]

setDate   [line 699]

void setDate( string $date, [boolean $replace = true])

Set the date of recording for this track.
  • Access: public

Parameters:

string   $date   — 
boolean   $replace   — 

[ Top ]

setDescription   [line 647]

void setDescription( string $description, [boolean $replace = true])

Set the description of this track.
  • Access: public

Parameters:

string   $description   — 
boolean   $replace   — 

[ Top ]

setGenre   [line 673]

void setGenre( string $genre, [boolean $replace = true])

Set the genre of this track.
  • Access: public

Parameters:

string   $genre   — 
boolean   $replace   — 

[ Top ]

setIsrc   [line 772]

void setIsrc( string $isrc, [boolean $replace = true])

Set the ISRC for this track.
  • Access: public

Parameters:

string   $isrc   — 
boolean   $replace   — 

[ Top ]

setLicense   [line 595]

void setLicense( string $license, [boolean $replace = true])

Set the distribution rights for this track.
  • Access: public

Parameters:

string   $license   — 
boolean   $replace   — 

[ Top ]

setLocation   [line 725]

void setLocation( string $location, [boolean $replace = true])

Set the location of the recording of this track.
  • Access: public

Parameters:

string   $location   — 
boolean   $replace   — 

[ Top ]

setOrganziation   [line 621]

void setOrganziation( string $organization, [boolean $replace = true])

Set the organisation responsible for this track.
  • Access: public

Parameters:

string   $organization   — 
boolean   $replace   — 

[ Top ]

setPerformer   [line 546]

void setPerformer( string $performer, [boolean $replace = true])

Set the performer of this track.
  • Access: public

Parameters:

string   $performer   — 
boolean   $replace   — 

[ Top ]

setTitle   [line 428]

void setTitle( string $title, [boolean $replace = true])

Set the title of this track.
  • Access: public

Parameters:

string   $title   — 
boolean   $replace   — 

[ Top ]

setTrackNumber   [line 497]

void setTrackNumber( int $number, [boolean $replace = true])

Set the number of this relative to the collection.
  • Access: public

Parameters:

int   $number   — 
boolean   $replace   — 

[ Top ]

setVersion   [line 451]

void setVersion( string $version, [boolean $replace = true])

Set the version of this track.
  • Access: public

Parameters:

string   $version   — 
boolean   $replace   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:15:22 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.