<?php
/**
* $Id: class_audioFile_data.php 1463 2007-04-16 17:08:32Z matthieu $
*/
if (!defined('__CLASS_PATH__')) {
define('__CLASS_PATH__', realpath(dirname(__FILE__) . '/../'));
}
require_once __CLASS_PATH__ . '/Audio/class_AudioFile.php';
/**
* extends class Audiofile to implements some easy way to use informations
* about audio formats files
*
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @author Matthieu MARY <hide@address.com>
* @since 1.5
* @package playlist
*/
class audiofile_data extends AudioFile {
/**
* Builder
* create a new object audiofile and get the properties
* @access public
* @param string $loadFilename the path to the audiofile
* @return void
*/
public function __construct($loadFilename) {
$this->loadFile($loadFilename);
$this->getSampleInfo();
}
/**
* Function that return the duration of the audio file
* @access public
* @return int
*/
public function getLength() {
return $this->wave_length;
}
/**
* @deprecated since v 1.5
* @access public
* @return void
*/
public function clear() {
}
/**
* destructor
* @access public
* @return void
*/
public function __destruct() {
}
}
?>