Re: RFC: GSound, a GObject library for playing system sounds

2014-12-05 Thread Tristan Brindle
On 5 Dec 2014, at 1:42 pm, Tristan Brindle t.c.brin...@gmail.com wrote: It looks like the Windows equivalent is the PlaySound() function[0]. So I guess there are a couple of possible approaches if we don’t want GSound to stay as a separate library: Having given it a bit more thought,

Re: RFC: GSound, a GObject library for playing system sounds

2014-12-05 Thread Bastien Nocera
On Fri, 2014-12-05 at 17:33 +0800, Tristan Brindle wrote: On 5 Dec 2014, at 1:42 pm, Tristan Brindle t.c.brin...@gmail.com wrote: It looks like the Windows equivalent is the PlaySound() function[0]. So I guess there are a couple of possible approaches if we don’t want GSound to

Re: RFC: GSound, a GObject library for playing system sounds

2014-12-05 Thread Nicolas Dufresne
Le 2014-12-05 04:33, Tristan Brindle a écrit : On 5 Dec 2014, at 1:42 pm, Tristan Brindle t.c.brin...@gmail.com wrote: It looks like the Windows equivalent is the PlaySound() function[0]. So I guess there are a couple of possible approaches if we don’t want GSound to stay as a separate

Re: RFC: GSound, a GObject library for playing system sounds

2014-12-04 Thread Florian Müllner
On Thu, Dec 4, 2014 at 12:25 PM, Richard Hughes hughsi...@gmail.com wrote: Surely by pushing all your awesome code into GDK or GTK we would get all this awesome new functionality for free in the toolkit? Or possibly GIO? Playing sounds is not really tied to a (visible) UI, though linking to

Re: RFC: GSound, a GObject library for playing system sounds

2014-12-04 Thread Emmanuele Bassi
hi; On 4 December 2014 at 11:25, Richard Hughes hughsi...@gmail.com wrote: On 15 November 2014 at 06:37, Tristan Brindle tcbrin...@gmail.com wrote: As far as I’m concerned it’s ready to be used, so please go ahead and try it out! I've done this, and it's indeed much nicer than using

Re: RFC: GSound, a GObject library for playing system sounds

2014-12-04 Thread Emmanuele Bassi
hi; On 4 December 2014 at 11:40, Florian Müllner fmuell...@gnome.org wrote: On Thu, Dec 4, 2014 at 12:25 PM, Richard Hughes hughsi...@gmail.com wrote: Surely by pushing all your awesome code into GDK or GTK we would get all this awesome new functionality for free in the toolkit? Or

Re: RFC: GSound, a GObject library for playing system sounds

2014-12-04 Thread Bastien Nocera
On Thu, 2014-12-04 at 12:40 +0100, Florian Müllner wrote: On Thu, Dec 4, 2014 at 12:25 PM, Richard Hughes hughsi...@gmail.com wrote: Surely by pushing all your awesome code into GDK or GTK we would get all this awesome new functionality for free in the toolkit? Or possibly GIO? Playing

Re: RFC: GSound, a GObject library for playing system sounds

2014-12-04 Thread Emmanuele Bassi
hi; On 4 December 2014 at 12:09, Richard Hughes hughsi...@gmail.com wrote: On 4 December 2014 at 11:45, Emmanuele Bassi eba...@gmail.com wrote: I'm not overly on board with shoving even more API inside GDK just to keep the number of libraries down. Right; but from a 40,000ft view, having to

Re: RFC: GSound, a GObject library for playing system sounds

2014-12-04 Thread Tristan Brindle
On 4 Dec 2014, at 8:09 pm, Richard Hughes hughsi...@gmail.com wrote: has anybody done an assessment of the similarities between DirectSound and canberra? how do these API map to each other? can we do a layer that is the minimal intersection between the two (and whatever MacOS has) and still

Re: RFC: GSound, a GObject library for playing system sounds

2014-12-04 Thread Jasper St. Pierre
On Dec 4, 2014 4:10 AM, Richard Hughes hughsi...@gmail.com wrote: On 4 December 2014 at 11:45, Emmanuele Bassi eba...@gmail.com wrote: I'm not overly on board with shoving even more API inside GDK just to keep the number of libraries down. Right; but from a 40,000ft view, having to depend

Re: RFC: GSound, a GObject library for playing system sounds

2014-12-04 Thread Tristan Brindle
On 5 Dec 2014, at 12:29 am, Tristan Brindle t.c.brin...@gmail.com wrote: Alternatively, a few minutes of Googling has turned up that Mac OS has its own high level sound playing API, coincidentally called NSSound[0], which has a broadly similar focus. So it might be possible for GSound (or

Re: RFC: GSound, a GObject library for playing system sounds

2014-12-04 Thread Marcus Karlsson
On Fri, Dec 05, 2014 at 01:42:55PM +0800, Tristan Brindle wrote: I think we’d have to lose the nice async functions that GSound has, because Windows and Mac don’t seem to give you callbacks when the sound has finished. NSSoundDelegate has a sound:didFinishPlaying: callback [1] on OS X so it

RFC: GSound, a GObject library for playing system sounds

2014-11-14 Thread Tristan Brindle
Hi all, A little while ago I wrote a small library called GSound (remarkably, a name which doesn’t seem to have been used before, at least on my Fedora installation). It wraps the libcanberra API and “GObject-ifies” it so it can be properly used in introspected languages. I’ve recently dug it

Re: RFC: GSound, a GObject library for playing system sounds

2014-11-14 Thread Emmanuele Bassi
hi; On 14 November 2014 09:47, Tristan Brindle tcbrin...@gmail.com wrote: A little while ago I wrote a small library called GSound (remarkably, a name which doesn’t seem to have been used before, at least on my Fedora installation). It wraps the libcanberra API and “GObject-ifies” it so it

Re: RFC: GSound, a GObject library for playing system sounds

2014-11-14 Thread Tristan Brindle
On 14 Nov 2014, at 8:15 pm, Sébastien Wilmet swil...@gnome.org wrote: On Fri, Nov 14, 2014 at 05:47:52PM +0800, Tristan Brindle wrote: https://tcbrindle.github.io/gsound-docs With the name GSound I was worried that you reused the g_ namespace (for GLib), but it's not the case, so it's