Re: [gtkmm] new thread vs. fork to play a sound on button press



On Don, 2002-12-26 at 22:15, Paul Davis wrote:

> given that you have to fork at some poin if you want to run another
> program to play the sound, the key question is how you intend to play
> the sound. the simple way: using an existing cmdline utility such as
> "play". for this, just fork(2) and exec(2), or use system(3) from a
> thread.

Or even simpler (and portable), use Glib::spawn_async().

--Daniel





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]