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



hi;

On 4 December 2014 at 11:40, Florian Müllner <fmuellner gnome org> wrote:
On Thu, Dec 4, 2014 at 12:25 PM, Richard Hughes <hughsient 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 libcanberra would bring in a couple of dependencies
which might be undesirable in the GIO case ...

looking at GTK and libcanberra-gtk, we kind of need access to details
from the windowing system like events, windows, displays, and we need
a way to cancel queued sounds if the application terminates.

we could avoid that, and add more attributes, but then you'd have the
API balloon out of control, and you'd still need to do the translation
between GDK/GTK data when calling GSound API.

on top of that, it would make GIO depend on libcanberra. we could use
a GIO extension point, but that does not solve much if we're going to
support DirectSound on Windows, or SystemAudioServices on MacOS.

all in all, I'd rather not have it in GIO.

ciao,
 Emmanuele.

-- 
http://www.bassi.io
[ ] ebassi [ gmail com]


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