Hi All.
I’m looking at porting Aisleriot to gtk4. Aisleriot currently uses libcanberra-gtk3, which I understand is deprecated. Is there a preferred replacement for doing event sounds for gnome apps?
Hi All.
I’m looking at porting Aisleriot to gtk4. Aisleriot currently uses libcanberra-gtk3, which I understand is deprecated. Is there a preferred replacement for doing event sounds for gnome apps?
libcanberra is unmaintained, and has been unmaintained for about 10 years; libcanberra-gtk3 is just a bunch of glue code to associate sound effects (coming from a “sound theme”) with GTK events. None of this stuff is even remotely relevant to modern GNOME.
You can use GtkMediaFile
to load the asset, and then use the GtkMediaStream
API to control the playback.
You should ship the sound assets with your application.
If you need more control, you can use GStreamer directly, with the GstPlay
API.
Ok thanks.
You should ship the sound assets with your application.
I see that is already the case with Aisleriot, so that makes the change easier.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.