37 $info = &$this->getid3->info;
38 fseek($this->getid3->fp,
$info[
'avdataoffset'], SEEK_SET);
39 $fileheader =
fread($this->getid3->fp, 1088);
40 if (preg_match(
'#^IMPM#', $fileheader)) {
42 } elseif (preg_match(
'#^Extended Module#', $fileheader)) {
44 } elseif (preg_match(
'#^.{44}SCRM#', $fileheader)) {
46 } elseif (preg_match(
'#^.{1080}(M\\.K\\.|M!K!|FLT4|FLT8|[5-9]CHN|[1-3][0-9]CH)#', $fileheader)) {
49 $info[
'error'][] =
'This is not a known type of MOD file';
60 $info = &$this->getid3->info;
61 fseek($this->getid3->fp,
$info[
'avdataoffset'] + 1080);
62 $FormatID =
fread($this->getid3->fp, 4);
63 if (!preg_match(
'#^(M.K.|[5-9]CHN|[1-3][0-9]CH)$#', $FormatID)) {
64 $info[
'error'][] =
'This is not a known type of MOD file';
69 $info[
'fileformat'] =
'mod';
71 $info[
'error'][] =
'MOD parsing not enabled in this version of GetId3Core() ['.$this->getid3->version().
']';
82 $info = &$this->getid3->info;
83 fseek($this->getid3->fp,
$info[
'avdataoffset']);
84 $FormatID =
fread($this->getid3->fp, 15);
85 if (!preg_match(
'#^Extended Module$#', $FormatID)) {
86 $info[
'error'][] =
'This is not a known type of XM-MOD file';
91 $info[
'fileformat'] =
'xm';
93 $info[
'error'][] =
'XM-MOD parsing not enabled in this version of GetId3Core() ['.$this->getid3->version().
']';
104 $info = &$this->getid3->info;
105 fseek($this->getid3->fp,
$info[
'avdataoffset'] + 44);
106 $FormatID =
fread($this->getid3->fp, 4);
107 if (!preg_match(
'#^SCRM$#', $FormatID)) {
108 $info[
'error'][] =
'This is not a ScreamTracker MOD file';
113 $info[
'fileformat'] =
's3m';
115 $info[
'error'][] =
'ScreamTracker parsing not enabled in this version of GetId3Core() ['.$this->getid3->version().
']';
126 $info = &$this->getid3->info;
127 fseek($this->getid3->fp,
$info[
'avdataoffset']);
128 $FormatID =
fread($this->getid3->fp, 4);
129 if (!preg_match(
'#^IMPM$#', $FormatID)) {
130 $info[
'error'][] =
'This is not an ImpulseTracker MOD file';
135 $info[
'fileformat'] =
'it';
137 $info[
'error'][] =
'ImpulseTracker parsing not enabled in this version of GetId3Core() ['.$this->getid3->version().
']';
GetId3() by James Heinrich info@getid3.org //.
GetId3() by James Heinrich info@getid3.org //.
getMODheaderFilepointer()
getS3MheaderFilepointer()
fseek($bytes, $whence=SEEK_SET)