getid3_flac::parseSEEKTABLE() –

You appear to be a bot. Output may be restricted

Description

Usage

$bool = getid3_flac::parseSEEKTABLE( $BlockData );

Parameters

$BlockData
( string ) required

Returns

bool

Source

File name: wordpress/wp-includes/ID3/module.audio.flac.php
Lines:

1 to 28 of 28
  private function parseSEEKTABLE($BlockData) {
    $info = &$this->getid3->info;

    $offset = 0;
    $BlockLength = strlen($BlockData);
    $placeholderpattern = str_repeat("\xFF", 8);
    while ($offset < $BlockLength) {
      $SampleNumberString = substr($BlockData, $offset, 8);
      $offset += 8;
      if ($SampleNumberString == $placeholderpattern) {

        // placeholder point
        getid3_lib::safe_inc($info['flac']['SEEKTABLE']['placeholders'], 1);
        $offset += 10;

      } else {

        $SampleNumber                                        = getid3_lib::BigEndian2Int($SampleNumberString);
        $info['flac']['SEEKTABLE'][$SampleNumber]['offset']  = getid3_lib::BigEndian2Int(substr($BlockData, $offset, 8));
        $offset += 8;
        $info['flac']['SEEKTABLE'][$SampleNumber]['samples'] = getid3_lib::BigEndian2Int(substr($BlockData, $offset, 2));
        $offset += 2;

      }
    }

    return true;
  }
 

 View on GitHub View on Trac