ILIAS  Release_4_1_x_branch Revision 61804
 All Data Structures Namespaces Files Functions Variables Groups Pages
getid3_mod Class Reference

getID3() by James Heinrich info@.nosp@m.geti.nosp@m.d3.or.nosp@m.g // More...

+ Collaboration diagram for getid3_mod:

Public Member Functions

 getid3_mod (&$fd, &$ThisFileInfo, $option)
 getMODheaderFilepointer (&$fd, &$ThisFileInfo)
 getXMheaderFilepointer (&$fd, &$ThisFileInfo)
 getS3MheaderFilepointer (&$fd, &$ThisFileInfo)
 getITheaderFilepointer (&$fd, &$ThisFileInfo)

Detailed Description

getID3() by James Heinrich info@.nosp@m.geti.nosp@m.d3.or.nosp@m.g //

Definition at line 17 of file module.audio.mod.php.

Member Function Documentation

getid3_mod::getid3_mod ( $fd,
$ThisFileInfo,
  $option 
)

Definition at line 21 of file module.audio.mod.php.

References getITheaderFilepointer(), getMODheaderFilepointer(), getS3MheaderFilepointer(), and getXMheaderFilepointer().

{
if ($option === 'mod') {
$this->getMODheaderFilepointer($fd, $ThisFileInfo);
}
elseif ($option === 'xm') {
$this->getXMheaderFilepointer($fd, $ThisFileInfo);
}
elseif ($option === 'it') {
$this->getITheaderFilepointer($fd, $ThisFileInfo);
}
elseif ($option === 's3m') {
$this->getS3MheaderFilepointer($fd, $ThisFileInfo);
}
}

+ Here is the call graph for this function:

getid3_mod::getITheaderFilepointer ( $fd,
$ThisFileInfo 
)

Definition at line 83 of file module.audio.mod.php.

Referenced by getid3_mod().

{
fseek($fd, $ThisFileInfo['avdataoffset']);
$FormatID = fread($fd, 4);
if (!ereg('^IMPM$', $FormatID)) {
$ThisFileInfo['error'][] = 'This is not an ImpulseTracker MOD file';
return false;
}
$ThisFileInfo['fileformat'] = 'it';
$ThisFileInfo['error'][] = 'ImpulseTracker parsing not enabled in this version of getID3()';
return false;
}

+ Here is the caller graph for this function:

getid3_mod::getMODheaderFilepointer ( $fd,
$ThisFileInfo 
)

Definition at line 38 of file module.audio.mod.php.

Referenced by getid3_mod().

{
fseek($fd, $ThisFileInfo['avdataoffset'] + 1080);
$FormatID = fread($fd, 4);
if (!ereg('^(M.K.|[5-9]CHN|[1-3][0-9]CH)$', $FormatID)) {
$ThisFileInfo['error'][] = 'This is not a known type of MOD file';
return false;
}
$ThisFileInfo['fileformat'] = 'mod';
$ThisFileInfo['error'][] = 'MOD parsing not enabled in this version of getID3()';
return false;
}

+ Here is the caller graph for this function:

getid3_mod::getS3MheaderFilepointer ( $fd,
$ThisFileInfo 
)

Definition at line 68 of file module.audio.mod.php.

Referenced by getid3_mod().

{
fseek($fd, $ThisFileInfo['avdataoffset'] + 44);
$FormatID = fread($fd, 4);
if (!ereg('^SCRM$', $FormatID)) {
$ThisFileInfo['error'][] = 'This is not a ScreamTracker MOD file';
return false;
}
$ThisFileInfo['fileformat'] = 's3m';
$ThisFileInfo['error'][] = 'ScreamTracker parsing not enabled in this version of getID3()';
return false;
}

+ Here is the caller graph for this function:

getid3_mod::getXMheaderFilepointer ( $fd,
$ThisFileInfo 
)

Definition at line 53 of file module.audio.mod.php.

Referenced by getid3_mod().

{
fseek($fd, $ThisFileInfo['avdataoffset']);
$FormatID = fread($fd, 15);
if (!ereg('^Extended Module$', $FormatID)) {
$ThisFileInfo['error'][] = 'This is not a known type of XM-MOD file';
return false;
}
$ThisFileInfo['fileformat'] = 'xm';
$ThisFileInfo['error'][] = 'XM-MOD parsing not enabled in this version of getID3()';
return false;
}

+ Here is the caller graph for this function:


The documentation for this class was generated from the following file: