Net_CDDB
[ class tree: Net_CDDB ] [ index: Net_CDDB ] [ all elements ]

Class: Net_CDDB_cddiscid

Source Location: /Net_CDDB-0.3.0/CDDB/Reader/cddiscid.php

Class Overview


Driver class to extract the TOC from an audio-CD using a 'cd- discid' binary


Author(s):

Methods


Inherited Variables

Inherited Methods


Class Details

[line 23]
Driver class to extract the TOC from an audio-CD using a 'cd- discid' binary


[ Top ]


Method Detail

calcTrackOffsets   [line 40]

array calcTrackOffsets( boolean $use_sudo, string $device)

Static method to obtain the track offsets and length of an audio CD

Returns an array with each array item being the track offset in seconds, and the final item being the total length of the audio disc in seconds. This method uses locates and executes a 'cd-discid' binary on your computer to calculate the track offsets. You need to have 'cd-discid' installed and in your PATH for this to work. You can get 'cd-discid' here: http://lly.org/~rcw/cd-discid/


Parameters:

boolean   $use_sudo     
string   $device     

[ Top ]


Documentation generated on Sun, 25 Feb 2007 14:00:11 -0500 by phpDocumentor 1.3.0. PEAR Logo Copyright © PHP Group 2004.