Hi,
I have a GUI application created with Lazarus and I need to let users
play some mp3 files.
I have the following Button.OnClick
-----------------------------------------------------
begin
  pMusic.CommandLine := 'mpg123 /home/user/song.mp3';
  pMusic.Active := true;

  while pMusic.Running then Application.ProcessMessages;

  ShowMessage('Done');
end.
-----------------------------------------------------

pMusic is a TProcess component dropped on the form. It is set not to
wait the executed application because that hangs up the whole gui app.

If I try to run mpg321 the process is created (the ShowMessage is
executed after some time) but no music is played.
With mpg123 all is fine.

N.B. I mean the two different packages mpg123 and mpg321, not the
symbolic link created during the installation.

Does anyone have a clue what's causing this behaviour ???
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to