getid3_ac3::Analyze() –

You appear to be a bot. Output may be restricted

Description

Usage

$bool = getid3_ac3::Analyze();

Parameters

Returns

bool

Source

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

201 to 300 of 449
      $thisfile_ac3_raw_bsi['flags']['mixmdat']     = (bool) $this->getid3_ac3::readHeaderBSI(1);
      if ($thisfile_ac3_raw_bsi['flags']['mixmdat']) { // Mixing metadata
        if ($thisfile_ac3_raw_bsi['acmod'] > 2) { // if more than 2 channels
          $thisfile_ac3_raw_bsi['dmixmod']  =        $this->getid3_ac3::readHeaderBSI(2);
        }
        if (($thisfile_ac3_raw_bsi['acmod'] & 0x01) && ($thisfile_ac3_raw_bsi['acmod'] > 2)) { // if three front channels exist
          $thisfile_ac3_raw_bsi['ltrtcmixlev'] =        $this->getid3_ac3::readHeaderBSI(3);
          $thisfile_ac3_raw_bsi['lorocmixlev'] =        $this->getid3_ac3::readHeaderBSI(3);
        }
        if ($thisfile_ac3_raw_bsi['acmod'] & 0x04) { // if a surround channel exists
          $thisfile_ac3_raw_bsi['ltrtsurmixlev'] =        $this->getid3_ac3::readHeaderBSI(3);
          $thisfile_ac3_raw_bsi['lorosurmixlev'] =        $this->getid3_ac3::readHeaderBSI(3);
        }
        if ($thisfile_ac3_raw_bsi['flags']['lfeon']) { // if the LFE channel exists
          $thisfile_ac3_raw_bsi['flags']['lfemixlevcod'] = (bool) $this->getid3_ac3::readHeaderBSI(1);
          if ($thisfile_ac3_raw_bsi['flags']['lfemixlevcod']) {
            $thisfile_ac3_raw_bsi['lfemixlevcod']  =        $this->getid3_ac3::readHeaderBSI(5);
          }
        }
        if ($thisfile_ac3_raw_bsi['strmtyp'] == 0) { // if independent stream
          $thisfile_ac3_raw_bsi['flags']['pgmscl'] = (bool) $this->getid3_ac3::readHeaderBSI(1);
          if ($thisfile_ac3_raw_bsi['flags']['pgmscl']) {
            $thisfile_ac3_raw_bsi['pgmscl']  =        $this->getid3_ac3::readHeaderBSI(6);
          }
          if ($thisfile_ac3_raw_bsi['acmod'] == 0) { // if 1+1 mode (dual mono, so some items need a second value)
            $thisfile_ac3_raw_bsi['flags']['pgmscl2'] = (bool) $this->getid3_ac3::readHeaderBSI(1);
            if ($thisfile_ac3_raw_bsi['flags']['pgmscl2']) {
              $thisfile_ac3_raw_bsi['pgmscl2']  =        $this->getid3_ac3::readHeaderBSI(6);
            }
          }
          $thisfile_ac3_raw_bsi['flags']['extpgmscl'] = (bool) $this->getid3_ac3::readHeaderBSI(1);
          if ($thisfile_ac3_raw_bsi['flags']['extpgmscl']) {
            $thisfile_ac3_raw_bsi['extpgmscl']  =        $this->getid3_ac3::readHeaderBSI(6);
          }
          $thisfile_ac3_raw_bsi['mixdef']  =        $this->getid3_ac3::readHeaderBSI(2);
          if ($thisfile_ac3_raw_bsi['mixdef'] == 1) { // mixing option 2
            $thisfile_ac3_raw_bsi['premixcmpsel']  = (bool) $this->getid3_ac3::readHeaderBSI(1);
            $thisfile_ac3_raw_bsi['drcsrc']        = (bool) $this->getid3_ac3::readHeaderBSI(1);
            $thisfile_ac3_raw_bsi['premixcmpscl']  =        $this->getid3_ac3::readHeaderBSI(3);
          } elseif ($thisfile_ac3_raw_bsi['mixdef'] == 2) { // mixing option 3
            $thisfile_ac3_raw_bsi['mixdata']       =        $this->getid3_ac3::readHeaderBSI(12);
          } elseif ($thisfile_ac3_raw_bsi['mixdef'] == 3) { // mixing option 4
            $mixdefbitsread = 0;
            $thisfile_ac3_raw_bsi['mixdeflen']     =        $this->getid3_ac3::readHeaderBSI(5); $mixdefbitsread += 5;
            $thisfile_ac3_raw_bsi['flags']['mixdata2'] = (bool) $this->getid3_ac3::readHeaderBSI(1); $mixdefbitsread += 1;
            if ($thisfile_ac3_raw_bsi['flags']['mixdata2']) {
              $thisfile_ac3_raw_bsi['premixcmpsel']  = (bool) $this->getid3_ac3::readHeaderBSI(1); $mixdefbitsread += 1;
              $thisfile_ac3_raw_bsi['drcsrc']        = (bool) $this->getid3_ac3::readHeaderBSI(1); $mixdefbitsread += 1;
              $thisfile_ac3_raw_bsi['premixcmpscl']  =        $this->getid3_ac3::readHeaderBSI(3); $mixdefbitsread += 3;
              $thisfile_ac3_raw_bsi['flags']['extpgmlscl']   = (bool) $this->getid3_ac3::readHeaderBSI(1); $mixdefbitsread += 1;
              if ($thisfile_ac3_raw_bsi['flags']['extpgmlscl']) {
                $thisfile_ac3_raw_bsi['extpgmlscl']    =        $this->getid3_ac3::readHeaderBSI(4); $mixdefbitsread += 4;
              }
              $thisfile_ac3_raw_bsi['flags']['extpgmcscl']   = (bool) $this->getid3_ac3::readHeaderBSI(1); $mixdefbitsread += 1;
              if ($thisfile_ac3_raw_bsi['flags']['extpgmcscl']) {
                $thisfile_ac3_raw_bsi['extpgmcscl']    =        $this->getid3_ac3::readHeaderBSI(4); $mixdefbitsread += 4;
              }
              $thisfile_ac3_raw_bsi['flags']['extpgmrscl']   = (bool) $this->getid3_ac3::readHeaderBSI(1); $mixdefbitsread += 1;
              if ($thisfile_ac3_raw_bsi['flags']['extpgmrscl']) {
                $thisfile_ac3_raw_bsi['extpgmrscl']    =        $this->getid3_ac3::readHeaderBSI(4);
              }
              $thisfile_ac3_raw_bsi['flags']['extpgmlsscl']  = (bool) $this->getid3_ac3::readHeaderBSI(1); $mixdefbitsread += 1;
              if ($thisfile_ac3_raw_bsi['flags']['extpgmlsscl']) {
                $thisfile_ac3_raw_bsi['extpgmlsscl']   =        $this->getid3_ac3::readHeaderBSI(4); $mixdefbitsread += 4;
              }
              $thisfile_ac3_raw_bsi['flags']['extpgmrsscl']  = (bool) $this->getid3_ac3::readHeaderBSI(1); $mixdefbitsread += 1;
              if ($thisfile_ac3_raw_bsi['flags']['extpgmrsscl']) {
                $thisfile_ac3_raw_bsi['extpgmrsscl']   =        $this->getid3_ac3::readHeaderBSI(4); $mixdefbitsread += 4;
              }
              $thisfile_ac3_raw_bsi['flags']['extpgmlfescl'] = (bool) $this->getid3_ac3::readHeaderBSI(1); $mixdefbitsread += 1;
              if ($thisfile_ac3_raw_bsi['flags']['extpgmlfescl']) {
                $thisfile_ac3_raw_bsi['extpgmlfescl']  =        $this->getid3_ac3::readHeaderBSI(4); $mixdefbitsread += 4;
              }
              $thisfile_ac3_raw_bsi['flags']['dmixscl']      = (bool) $this->getid3_ac3::readHeaderBSI(1); $mixdefbitsread += 1;
              if ($thisfile_ac3_raw_bsi['flags']['dmixscl']) {
                $thisfile_ac3_raw_bsi['dmixscl']       =        $this->getid3_ac3::readHeaderBSI(4); $mixdefbitsread += 4;
              }
              $thisfile_ac3_raw_bsi['flags']['addch']        = (bool) $this->getid3_ac3::readHeaderBSI(1); $mixdefbitsread += 1;
              if ($thisfile_ac3_raw_bsi['flags']['addch']) {
                $thisfile_ac3_raw_bsi['flags']['extpgmaux1scl']   = (bool) $this->getid3_ac3::readHeaderBSI(1); $mixdefbitsread += 1;
                if ($thisfile_ac3_raw_bsi['flags']['extpgmaux1scl']) {
                  $thisfile_ac3_raw_bsi['extpgmaux1scl']    =        $this->getid3_ac3::readHeaderBSI(4); $mixdefbitsread += 4;
                }
                $thisfile_ac3_raw_bsi['flags']['extpgmaux2scl']   = (bool) $this->getid3_ac3::readHeaderBSI(1); $mixdefbitsread += 1;
                if ($thisfile_ac3_raw_bsi['flags']['extpgmaux2scl']) {
                  $thisfile_ac3_raw_bsi['extpgmaux2scl']    =        $this->getid3_ac3::readHeaderBSI(4); $mixdefbitsread += 4;
                }
              }
            }
            $thisfile_ac3_raw_bsi['flags']['mixdata3'] = (bool) $this->getid3_ac3::readHeaderBSI(1); $mixdefbitsread += 1;
            if ($thisfile_ac3_raw_bsi['flags']['mixdata3']) {
              $thisfile_ac3_raw_bsi['spchdat']   =        $this->getid3_ac3::readHeaderBSI(5); $mixdefbitsread += 5;
              $thisfile_ac3_raw_bsi['flags']['addspchdat'] = (bool) $this->getid3_ac3::readHeaderBSI(1); $mixdefbitsread += 1;
              if ($thisfile_ac3_raw_bsi['flags']['addspchdat']) {
                $thisfile_ac3_raw_bsi['spchdat1']   =         $this->getid3_ac3::readHeaderBSI(5); $mixdefbitsread += 5;
                $thisfile_ac3_raw_bsi['spchan1att'] =         $this->getid3_ac3::readHeaderBSI(2); $mixdefbitsread += 2;
                $thisfile_ac3_raw_bsi['flags']['addspchdat1'] = (bool) $this->getid3_ac3::readHeaderBSI(1); $mixdefbitsread += 1;
                if ($thisfile_ac3_raw_bsi['flags']['addspchdat1']) {
                  $thisfile_ac3_raw_bsi['spchdat2']   =         $this->getid3_ac3::readHeaderBSI(5); $mixdefbitsread += 5;
                  $thisfile_ac3_raw_bsi['spchan2att'] =         $this->getid3_ac3::readHeaderBSI(3); $mixdefbitsread += 3;
 

 View on GitHub View on Trac