/src/AuderoWavExtractor.php

Description
Classes
Class Description
AuderoWavExtractor
Includes
Strict standards: Only variables should be passed by reference in C:\php\pear\PhpDocumentor\phpDocumentor\Smarty-2.6.0\libs\Smarty_Compiler.class.php on line 712 Call Stack: 0.0002 322504 1. {main}() C:\php\phpdoc:0 0.0029 333480 2. require('C:\php\pear\PhpDocumentor\phpDocumentor\phpdoc.inc') C:\php\phpdoc:40 0.4580 10503688 3. phpDocumentor_setup->createDocs() C:\php\pear\PhpDocumentor\phpDocumentor\phpdoc.inc:65 1.9087 12672128 4. phpDocumentor_IntermediateParser->Output() C:\php\pear\PhpDocumentor\phpDocumentor\Setup.inc.php:763 1.9646 12753408 5. phpDocumentor_IntermediateParser->Convert() C:\php\pear\PhpDocumentor\phpDocumentor\IntermediateParser.inc:1867 1.9646 12753528 6. Converter->walk() C:\php\pear\PhpDocumentor\phpDocumentor\IntermediateParser.inc:1654 2.6212 13792440 7. HTMLframesConverter->endPage() C:\php\pear\PhpDocumentor\phpDocumentor\Converter.inc:1939 2.6213 13793840 8. Smarty->fetch() C:\php\pear\PhpDocumentor\phpDocumentor\Converters\HTML\frames\HTMLframesConverter.inc:366 2.6548 13965208 9. include('C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\auderowavextractor\doc\26d3399f63abd43a7d72f8c21440dcb0\%%-65^%%-658603405^page.tpl.php') C:\php\pear\PhpDocumentor\phpDocumentor\Smarty-2.6.0\libs\Smarty.class.php:1298 2.6565 13967624 10. Smarty->_smarty_include() C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\auderowavextractor\doc\26d3399f63abd43a7d72f8c21440dcb0\%%-65^%%-658603405^page.tpl.php:155 2.6566 13969624 11. Smarty->_compile_resource() C:\php\pear\PhpDocumentor\phpDocumentor\Smarty-2.6.0\libs\Smarty.class.php:1935 2.6572 13971728 12. Smarty->_compile_source() C:\php\pear\PhpDocumentor\phpDocumentor\Smarty-2.6.0\libs\Smarty.class.php:1458 2.6575 13992976 13. Smarty_Compiler->_compile_file() C:\php\pear\PhpDocumentor\phpDocumentor\Smarty-2.6.0\libs\Smarty.class.php:1523 2.6583 14002792 14. Smarty_Compiler->_compile_tag() C:\php\pear\PhpDocumentor\phpDocumentor\Smarty-2.6.0\libs\Smarty_Compiler.class.php:316 2.6589 14003480 15. Smarty_Compiler->_compile_custom_tag() C:\php\pear\PhpDocumentor\phpDocumentor\Smarty-2.6.0\libs\Smarty_Compiler.class.php:537
require_once ('Converter.php') (line 64)

Description of AuderoWavExtractor

PHP versions 4 and 5

The follow is an example of how to extract a chunk from a wav file and force the download using this class:

  1.  <?php
  2.     require_once('AuderoWavExtractor.php');
  3.  
  4.     $InputFile = 'audio.wav';
  5.     $OutputFile = 'chunk.wav';
  6.     $Start = 0 * 1000;
  7.     $End = 20 * 1000;
  8.  
  9.     $Extractor = new AuderoWavExtractor($InputFile);
  10.     $Extractor->extractChunk($Start, $End);
  11.  ?>

The follow is an example of how to extract a chunk from a wav file and save it into the local disk:

  1.  <?php
  2.     require_once('AuderoWavExtractor.php');
  3.  
  4.     $InputFile = 'audio.wav';
  5.     $OutputFile = 'chunk.wav';
  6.     $Start = 0 * 1000;
  7.     $End = 20 * 1000;
  8.  
  9.     $Extractor = new AuderoWavExtractor($InputFile);
  10.     $Extractor->extractChunk($Start, $End, 2, $OutputFile);
  11.  ?>

LICENSE: Permission is granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Documentation generated on Sun, 25 Dec 2011 07:59:35 +0100 by phpDocumentor 1.4.4