Combining sound files

From: Date: Sun, 25 Feb 2007 15:22:53 +0000
Subject: Combining sound files
Groups: php.general 
Request: Send a blank email to php-general+get-249397@lists.php.net to get a copy of this message
Hi gang: I can combine two mp3 sound files together by simply: // load first $file = "a.mp3"; $handle = fopen($file, "rb"); $size = filesize($file); $load = fread($handle, $size); fclose($handle); // load second $file = "b.mp3"; $handle = fopen($file, "rb"); $size = filesize($file); $load .= fread($handle, $size); fclose($handle); // save both as one audio file $filename = "tmp/a.mp3"; $file = fopen( $filename, "wb" ); fwrite( $file, $load); fclose( $file ); However, I can't do the same with .WAV files. Does anyone know a way to combine .WAV files similar to the way shown above? Thanks. tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com

« previous php.general (#249397) next »