Login   Register  
PHP Classes
elePHPant
Icontem

File: test_echo.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Thi Dinh  >  WavEdit  >  test_echo.php  >  Download  
File: test_echo.php
Role: Example script
Content type: text/plain
Description: Using Echo with wavedit
Class: WavEdit
Manipulate audio files in the WAV format
Author: By
Last change: add option
Date: 9 years ago
Size: 587 bytes
 

Contents

Class file image Download
<?
//== Sample WavEdit - Echo ==//
//== Demo: http://www.pviet.com/wavedit/test_echo.php ==//

//load class
include("wavedit.class.php");
$wav = new wavEdit();

//load wav files
$wFiles = array("echo.wav");
$wData $wav->getFiles($wFiles);


//view wav images
$wav->drawImgWave();
$wav->viewImage("","viewheader");


//Echo - with 380ms, 5 times, and intensity=2
$arrEcho = array(
           array(
'pos'=>380,'echo'=>5,'intensity'=>2),
            );
$wav->setEcho($arrEcho);
$wav->writeWavFile("echo");
$wav->drawImgWave("echo");
$wav->viewImage("echo");

?>