Is GTK available on windows 7 ??
- From: Chandra Shekhar Sengupta <sayan801 gmail com>
- To: gtk-app-devel-list gnome org
- Subject: Is GTK available on windows 7 ??
- Date: Mon, 24 May 2010 18:36:57 +0530
Hi all,
I want to create a cross platform application for Windows 7,Windows XP &
Linux. Is GTK available on windows 7 ??
Regards,
Chandra Shekhar Sengupta
On Sat, May 22, 2010 at 5:30 PM, <gtk-app-devel-list-request gnome org>wrote:
Send gtk-app-devel-list mailing list submissions to
gtk-app-devel-list gnome org
To subscribe or unsubscribe via the World Wide Web, visit
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
or, via email, send a message with subject or body 'help' to
gtk-app-devel-list-request gnome org
You can reach the person managing the list at
gtk-app-devel-list-owner gnome org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of gtk-app-devel-list digest..."
Today's Topics:
1. play sound when a key is pressed (Andrew Nelson)
----------------------------------------------------------------------
Message: 1
Date: Fri, 21 May 2010 17:32:15 -0500
From: Andrew Nelson <gtk-app-devel-list andrewnelson name>
To: gtk-app-devel-list gnome org
Subject: play sound when a key is pressed
Message-ID:
<AANLkTilt3v--tbQ0lw3lftczpY-o8H7MBARV77Wy5wrB mail gmail com>
Content-Type: text/plain; charset=ISO-8859-1
All,
I'm trying to create a very simple app (actually written in vala) that
plays a sound (preferably from a wav file) when a key is pressed. Key
press events are likely to arrive quite close together. Currently
I'm using gstreamer to do this but it seems to take quite a while
after playing the first "wav" file that I can play the next.
Is using gstreamer the correct approach to attack this requirement or
should look into another library?
Thanks
//andy
Here is the current code I use to play audio.
class Audio {
private Element playbin;
private bool playing;
private string audio_src;
public Audio() {
string sounds =
GLib.Path.build_filename(Environment.get_current_dir(), "sounds",
null);
audio_src = GLib.Path.build_filename(sounds, "alert.wav", null);
playbin = Gst.ElementFactory.make("playbin", "player");
playbin.set_property("uri", "file://" + audio_src);
var bus = playbin.get_bus();
bus.add_signal_watch();
bus.message.connect(player_message);
}
private void player_message(Message message) {
if (message.type == Gst.MessageType.EOS ) {
playbin.set_state(Gst.State.NULL);
playing=false;
stdout.printf("read for next sound\n");
}
}
public void make_sound() {
if(!playing) {
playing = true;
playbin.set_state(Gst.State.PLAYING);
}
}
}
------------------------------
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
End of gtk-app-devel-list Digest, Vol 73, Issue 19
**************************************************
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]