开发者

SOX LAME and php fire done signal?

开发者 https://www.devze.com 2023-01-22 06:10 出处:网络
Hi I am using SOX in the following manner with php: $thesong = 67; $theString = "1.wav 2.wav 2.wav 1.wav";

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?
}


Try Something like this:

if(exec("./lame $thesong.wav $thesong.mp3") && exec("./sox $theString $thesong.wav"))
{
   //further processing 
}
0

精彩评论

暂无评论...
验证码 换一张
取 消