Re: [PHP] Combining sound files

2007-03-06 Thread Richard Lynch
I may be replying to an outdated URL or even all out of order as I play catchup on the list... Your JS "play" function checks for precisely two possible browser "appName" values: Microsoft Internet Explorer Netscape Maybe Mozilla Firefox has "Netscape" in its appName, but I wouldn't expect that..

Re: [PHP] Combining sound files

2007-03-02 Thread tedd
At 1:37 PM -0500 3/2/07, tedd wrote: At 5:28 PM -0600 2/27/07, Richard Lynch wrote: You may find it easier/faster to just locate a .wav splicer command line tool and run exec with it. Though perhaps not nearly as fun, depending on your definition of fun. Richard: Nah, it's easier to bit twid

Re: [PHP] Combining sound files

2007-03-02 Thread tedd
At 5:28 PM -0600 2/27/07, Richard Lynch wrote: You may find it easier/faster to just locate a .wav splicer command line tool and run exec with it. Though perhaps not nearly as fun, depending on your definition of fun. Richard: Nah, it's easier to bit twiddle the sound files and I found an eas

Re: [PHP] Combining sound files

2007-02-28 Thread Richard Lynch
On Wed, February 28, 2007 8:28 am, tedd wrote: > For the moment, I can use a HEX Editor and inspect the first 256 > bytes of a wav file and find out all the goodies therein, but do you > know if I strip out the first 256 bytes can I then combine the files > so they will work (providing the sample r

Re: [PHP] Combining sound files

2007-02-28 Thread tedd
At 5:28 PM -0600 2/27/07, Richard Lynch wrote: On Sun, February 25, 2007 9:22 am, tedd wrote: > 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? The first 256 bytes of a .WAV file contains magic numbers indicating the

Re: [PHP] Combining sound files

2007-02-27 Thread Richard Lynch
On Sun, February 25, 2007 9:22 am, tedd wrote: > 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 = "

Re: [PHP] Combining sound files

2007-02-26 Thread clive
That's a good point, then all I would have to do is to change the resultant mp3 file to a wav file. However, I'm not aware of how to do that using php. I would hope it's as easy as changing a jpg to a gif file, but I have never done a mp3 to a wav conversion before. I'll investigate that. you

Re: [PHP] Combining sound files

2007-02-26 Thread tedd
At 11:39 AM +0200 2/26/07, clive wrote: 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? Can you not convert the wav files to mp3's then combine them? -- Regards, Clive. Clive: That's a good point, then all I would

Re: [PHP] Combining sound files

2007-02-26 Thread clive
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? Can you not convert the wav files to mp3's then combine them? -- Regards, Clive. Real Time Travel Connections {No electrons were harmed in the creation, transmission o

[PHP] Combining sound files

2007-02-25 Thread tedd
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 .=