22 $info = &$this->getid3->info;
24 $fileheader = $this->
fread(1088);
25 if (preg_match(
'#^IMPM#', $fileheader)) {
27 } elseif (preg_match(
'#^Extended Module#', $fileheader)) {
29 } elseif (preg_match(
'#^.{44}SCRM#', $fileheader)) {
31 } elseif (preg_match(
'#^.{1080}(M\\.K\\.|M!K!|FLT4|FLT8|[5-9]CHN|[1-3][0-9]CH)#', $fileheader)) {
34 $this->
error(
'This is not a known type of MOD file');
40 $info = &$this->getid3->info;
42 $FormatID = $this->
fread(4);
43 if (!preg_match(
'#^(M.K.|[5-9]CHN|[1-3][0-9]CH)$#', $FormatID)) {
44 $this->
error(
'This is not a known type of MOD file');
48 $info[
'fileformat'] =
'mod';
50 $this->
error(
'MOD parsing not enabled in this version of getID3() ['.$this->getid3->version().
']');
55 $info = &$this->getid3->info;
57 $FormatID = $this->
fread(15);
58 if (!preg_match(
'#^Extended Module$#', $FormatID)) {
59 $this->
error(
'This is not a known type of XM-MOD file');
63 $info[
'fileformat'] =
'xm';
65 $this->
error(
'XM-MOD parsing not enabled in this version of getID3() ['.$this->getid3->version().
']');
70 $info = &$this->getid3->info;
72 $FormatID = $this->
fread(4);
73 if (!preg_match(
'#^SCRM$#', $FormatID)) {
74 $this->
error(
'This is not a ScreamTracker MOD file');
78 $info[
'fileformat'] =
's3m';
80 $this->
error(
'ScreamTracker parsing not enabled in this version of getID3() ['.$this->getid3->version().
']');
85 $info = &$this->getid3->info;
87 $FormatID = $this->
fread(4);
88 if (!preg_match(
'#^IMPM$#', $FormatID)) {
89 $this->
error(
'This is not an ImpulseTracker MOD file');
93 $info[
'fileformat'] =
'it';
95 $this->
error(
'ImpulseTracker parsing not enabled in this version of getID3() ['.$this->getid3->version().
']');
getMODheaderFilepointer()
getID3() by James Heinrich info@getid3.org //
fseek($bytes, $whence=SEEK_SET)
getS3MheaderFilepointer()