gtk interface and sound playing
- From: Andrea Paternesi <paternes cli di unipi it>
- To: <gtk-app-devel-list gnome org>
- Subject: gtk interface and sound playing
- Date: Mon, 6 May 2002 14:26:54 +0200 (CEST)
Hi,
I am writing a little gtk apllication and i would like to add sound to
certain events that could happen.
I use the ALSA library to play wav files but i have a problem of
syncronization.
When i play the file, the gtk-main-loop stops.
I cannot use threads because gtk is not thread safe.
How can i play the wav file without block the gtk loop?
now i just use gtk_signal_connect(....,playwav,...)
where playwav is the function that plays wavs.
Is there a simple and clear solution for that ?
Andrea Paternesi.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]