I wasn't able to get any sound in gnubg 1.01.002 using canberra 0.30. For some
reason, sound is disabled by default and doesn't play, and ca_context_play()
returns CA_ERROR_DISABLED. The attached patch enables sound explicitly when the
context is created, which solves the problem.
>>> Dan
Index: sound.c
===================================================================
--- gnubg-1.01.002/sound.c
+++ gnubg-1.01.002/sound.c 2013-07-11 21:57:08.812047001 +0200
@@ -443,6 +443,7 @@
else
#endif
ca_context_create(&canberracontext);
+ ca_context_change_props(canberracontext, CA_PROP_CANBERRA_ENABLE, "1",
NULL);
}
ca_context_play(canberracontext, 0, CA_PROP_MEDIA_FILENAME, file, NULL);
#endif
_______________________________________________
Bug-gnubg mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-gnubg