Ignore:
Timestamp:
Dec 30, 2018, 6:02:45 PM (6 months ago)
Author:
spip.franck@…
Message:

Mise à jour de la lib getid en version 1.9.16, nous étions en 1.9.14
https://github.com/JamesHeinrich/getID3/blob/master/changelog.txt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _core_/branches/spip-3.2/plugins/medias/lib/getid3/module.misc.cue.php

    r85814 r113162  
    11<?php
     2
    23/////////////////////////////////////////////////////////////////
    34/// getID3() by James Heinrich <info@getid3.org>               //
    4 //  available at http://getid3.sourceforge.net                 //
    5 //            or http://www.getid3.org                         //
    6 //          also https://github.com/JamesHeinrich/getID3       //
    7 /////////////////////////////////////////////////////////////////
    8 // See readme.txt for more details                             //
     5//  available at https://github.com/JamesHeinrich/getID3       //
     6//            or https://www.getid3.org                        //
     7//            or http://getid3.sourceforge.net                 //
     8//  see readme.txt for more details                            //
    99/////////////////////////////////////////////////////////////////
    1010//                                                             //
     
    3636        public $cuesheet = array();
    3737
     38        /**
     39         * @return bool
     40         */
    3841        public function Analyze() {
    3942                $info = &$this->getid3->info;
     
    4548        }
    4649
    47 
    48 
     50        /**
     51         * @param string $filename
     52         *
     53         * @return array
     54         */
    4955        public function readCueSheetFilename($filename)
    5056        {
     
    5258                return $this->readCueSheet($filedata);
    5359        }
    54         /**
    55         * Parses a cue sheet file.
    56         *
    57         * @param string $filename - The filename for the cue sheet to open.
    58         */
     60
     61        /**
     62         * Parses a cue sheet file.
     63         *
     64         * @param string $filedata
     65         *
     66         * @return array
     67         */
    5968        public function readCueSheet(&$filedata)
    6069        {
     
    7382
    7483        /**
    75         * Parses the cue sheet array.
    76         *
    77         * @param array $file - The cuesheet as an array of each line.
    78         */
     84         * Parses the cue sheet array.
     85         *
     86         * @param array $file - The cuesheet as an array of each line.
     87         */
    7988        public function parseCueSheet($file)
    8089        {
     
    126135
    127136        /**
    128         * Parses the REM command.
    129         *
    130         * @param string $line - The line in the cue file that contains the TRACK command.
    131         * @param integer $track_on - The track currently processing.
    132         */
     137         * Parses the REM command.
     138         *
     139         * @param string $line - The line in the cue file that contains the TRACK command.
     140         * @param integer $track_on - The track currently processing.
     141         */
    133142        public function parseComment($line, $track_on)
    134143        {
     
    149158
    150159        /**
    151         * Parses the FILE command.
    152         *
    153         * @param string $line - The line in the cue file that contains the FILE command.
    154         * @return array - Array of FILENAME and TYPE of file..
    155         */
     160         * Parses the FILE command.
     161         *
     162         * @param string $line - The line in the cue file that contains the FILE command.
     163         *
     164         * @return array - Array of FILENAME and TYPE of file..
     165         */
    156166        public function parseFile($line)
    157167        {
     
    169179
    170180        /**
    171         * Parses the FLAG command.
    172         *
    173         * @param string $line - The line in the cue file that contains the TRACK command.
    174         * @param integer $track_on - The track currently processing.
    175         */
     181         * Parses the FLAG command.
     182         *
     183         * @param string $line - The line in the cue file that contains the TRACK command.
     184         * @param integer $track_on - The track currently processing.
     185         */
    176186        public function parseFlags($line, $track_on)
    177187        {
     
    207217
    208218        /**
    209         * Collect any unidentified data.
    210         *
    211         * @param string $line - The line in the cue file that contains the TRACK command.
    212         * @param integer $track_on - The track currently processing.
    213         */
     219         * Collect any unidentified data.
     220         *
     221         * @param string $line - The line in the cue file that contains the TRACK command.
     222         * @param integer $track_on - The track currently processing.
     223         */
    214224        public function parseGarbage($line, $track_on)
    215225        {
     
    228238
    229239        /**
    230         * Parses the INDEX command of a TRACK.
    231         *
    232         * @param string $line - The line in the cue file that contains the TRACK command.
    233         * @param integer $track_on - The track currently processing.
    234         */
     240         * Parses the INDEX command of a TRACK.
     241         *
     242         * @param string $line - The line in the cue file that contains the TRACK command.
     243         * @param integer $track_on - The track currently processing.
     244         */
    235245        public function parseIndex($line, $track_on)
    236246        {
    237247                $type = strtolower(substr($line, 0, strpos($line, ' ')));
    238248                $line =            substr($line, strpos($line, ' ') + 1);
     249                $number = 0;
    239250
    240251                if ($type == 'index')
     
    262273        }
    263274
     275        /**
     276         * @param string $line
     277         * @param int    $track_on
     278         */
    264279        public function parseString($line, $track_on)
    265280        {
     
    293308
    294309        /**
    295         * Parses the TRACK command.
    296         *
    297         * @param string $line - The line in the cue file that contains the TRACK command.
    298         * @param integer $track_on - The track currently processing.
    299         */
     310         * Parses the TRACK command.
     311         *
     312         * @param string $line - The line in the cue file that contains the TRACK command.
     313         * @param integer $track_on - The track currently processing.
     314         */
    300315        public function parseTrack($line, $track_on)
    301316        {
Note: See TracChangeset for help on using the changeset viewer.