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




Le 2014-12-05 04:33, Tristan Brindle a écrit :
On 5 Dec 2014, at 1:42 pm, Tristan Brindle <t c brindle 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, there is a potential (possibly crazy) third option:


3) Add the GSound API to GIO as an extension point, but implement it directly using GStreamer, and don’t use 
libcanberra at
Setting up GST each time will be too slow. Having GST linked around will also have the side effect that one 1 of 0.10 or 1.0 will be usable with GLib app. 0.10 is nearly dead, but it's still a little bit soon for that. Doing it with pulse will be better, as you can upload your sound, and get it to play when needed. Some Alsa code, as a fallback to not having pulse would work relyably to. Obviously you'll need OSS for BSD and friends.

Nicolas



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