parseSTREAMINFO example

$BlockTypeText_raw['offset']          = $BlockOffset;
            $BlockTypeText_raw['last_meta_block'] = $LastBlockFlag;
            $BlockTypeText_raw['block_type']      = $BlockType;
            $BlockTypeText_raw['block_type_text'] = $BlockTypeText;
            $BlockTypeText_raw['block_length']    = $BlockLength;
            if ($BlockTypeText_raw['block_type'] != 0x06) { // do not read attachment data automatically                 $BlockTypeText_raw['block_data']  = $this->fread($BlockLength);
            }

            switch ($BlockTypeText) {
                case 'STREAMINFO':     // 0x00                     if (!$this->parseSTREAMINFO($BlockTypeText_raw['block_data'])) {
                        return false;
                    }
                    break;

                case 'PADDING':        // 0x01                     unset($info['flac']['PADDING']); // ignore                     break;

                case 'APPLICATION':    // 0x02                     if (!$this->parseAPPLICATION($BlockTypeText_raw['block_data'])) {
                        return false;
                    }
Home | Imprint | This part of the site doesn't use cookies.