<?
//== Sample of using Wavedit - Fading sound ==/
//== check demo at: http://www.pviet.com/wavedit/test_fade.php ==//
//load class
include("wavedit.class.php");
$wav = new wavEdit();
//load wav files
$wFiles = array("Gary Moore Still Got The Blue.wav");
$wData = $wav->getFiles($wFiles);
//view wav images
$wav->drawImgWave();
$wav->viewImage("","viewheader");
$arrFadeIn = array(
array('pos'=>"head",'val'=>1000),
);
$arrFadeOut = array(
array('pos'=>"tail",'val'=>'800'),
);
//Fade Out
$wav->setFade($arrFadeIn);
$wav->drawImgWave("fadeIn");
$wav->viewImage("fadeIn","nofile");
//Fade In
$wav->setFade($arrFadeOut);
$wav->drawImgWave("fadeOut");
$wav->viewImage("fadeOut","nofile");
//Write out File
$wav->writeWavFile("fade");
$wav->drawImgWave("fade");
$wav->viewImage("fade","viewheader");
?>
|