tags:

views:

12

answers:

1

Hi I am using SOX in the following manner with php. $thesong = 67; $theString = "1.wav 2.wav 2.wav 1.wav"; exec("./sox $theString $thesong.wav");

It seems to be be working very good.Then I do the following.

exec("./lame $thesong.wav $thesong.mp3");

Again this works fine,but is there any way to tell when both SOX and LAME have completed the encoding?

I mean do they send out a "I Am Done" signal?

Something like if(soxdone && lamedone){ //further processing? }

A: 

Found out passthru is what I was looking for.

Thanks

james