Class ID3_Frame_MLLT

Description

To increase performance and accuracy of jumps within a MPEG audio file, frames with time codes in different locations in the file might be useful.

The MPEG location lookup table frame includes references that the software can use to calculate positions in the file.

The MPEG frames between reference describes how much the frame counter should be increased for every reference. If this value is two then the first reference points out the second frame, the 2nd reference the 4th frame, the 3rd reference the 6th frame etc. In a similar way the bytes between reference and milliseconds between reference points out bytes and milliseconds respectively.

Each reference consists of two parts; a certain number of bits that describes the difference between what is said in bytes between reference and the reality and a certain number of bits that describes the difference between what is said in milliseconds between reference and the reality.

There may only be one MLLT frame in each tag.

  • author: Sven Vollbehr <svollbehr@gmail.com>
  • version: $Rev: 75 $
  • copyright: Copyright (c) 2008 The PHP Reader Project Workgroup
  • todo: Data parsing and write support
  • license: New BSD License

Located in /ID3/Frame/MLLT.php (line 70)

ID3_Object
   |
   --ID3_Frame
      |
      --ID3_Frame_MLLT
Method Summary
ID3_Frame_MLLT __construct ([Reader $reader = null], [ &$options = array()], Array $options)
integer getBytes ()
Array getDeviation ()
integer getFrames ()
integer getMilliseconds ()
void setBytes (integer $bytes)
void setDeviation (Array $deviation)
void setFrames (integer $frames)
void setMilliseconds (integer $milliseconds)
Variables

Inherited Variables

Inherited from ID3_Frame

ID3_Frame::$_data

Inherited from ID3_Object

ID3_Object::$_reader
Methods
Constructor __construct (line 90)

Constructs the class with given parameters and parses object related data.

  • access: public
ID3_Frame_MLLT __construct ([Reader $reader = null], [ &$options = array()], Array $options)
  • Reader $reader: The reader object.
  • Array $options: The options array.
  • &$options

Redefinition of:
ID3_Frame::__construct()
Constructs the class with given parameters and reads object related data from the ID3v2 tag.
getBytes (line 126)

Returns the number of bytes between reference.

  • access: public
integer getBytes ()
getDeviation (line 159)

Returns the deviations as an array. Each value is an array containing two values, ie the deviation in bytes, and the deviation in milliseconds, respectively.

  • access: public
Array getDeviation ()
getFrames (line 112)

Returns the number of MPEG frames between reference.

  • access: public
integer getFrames ()
getMilliseconds (line 140)

Returns the number of milliseconds between references.

  • access: public
integer getMilliseconds ()
setBytes (line 133)

Sets the number of bytes between reference.

  • access: public
void setBytes (integer $bytes)
  • integer $bytes: The number of bytes.
setDeviation (line 168)

Sets the deviations array. The array must consist of arrays, each of which having two values, the deviation in bytes, and the deviation in milliseconds, respectively.

  • access: public
void setDeviation (Array $deviation)
  • Array $deviation: The deviations array.
setFrames (line 119)

Sets the number of MPEG frames between reference.

  • access: public
void setFrames (integer $frames)
  • integer $frames: The number of MPEG frames.
setMilliseconds (line 147)

Sets the number of milliseconds between references.

  • access: public
void setMilliseconds (integer $milliseconds)
  • integer $milliseconds: The number of milliseconds.

Inherited Methods

Inherited From ID3_Frame

ID3_Frame::__construct()
ID3_Frame::getFlags()
ID3_Frame::getIdentifier()
ID3_Frame::getSize()
ID3_Frame::hasFlag()
ID3_Frame::setData()
ID3_Frame::setFlags()
ID3_Frame::setIdentifier()
ID3_Frame::__toString()

Inherited From ID3_Object

ID3_Object::__construct()
ID3_Object::decodeSynchsafe32()
ID3_Object::decodeUnsynchronisation()
ID3_Object::encodeSynchsafe32()
ID3_Object::encodeUnsynchronisation()
ID3_Object::explodeString8()
ID3_Object::explodeString16()
ID3_Object::getOption()
ID3_Object::getOptions()
ID3_Object::setOption()
ID3_Object::setOptions()
ID3_Object::__get()
ID3_Object::__set()
Class Constants

Documentation generated on Fri, 05 Sep 2008 20:19:07 +0300 by phpDocumentor 1.4.1