Re: [gtkmm] new thread vs. fork to play a sound on button press
- From: Daniel Elstner <daniel elstner gmx net>
- To: Paul Davis <paul linuxaudiosystems com>
- Cc: Leslie Polzer <sky nachtwind net>, gtkmm-list <gtkmm-list gnome org>
- Subject: Re: [gtkmm] new thread vs. fork to play a sound on button press
- Date: 26 Dec 2002 22:44:02 +0100
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]