I fired up World of Goo last night for the first time in a while and didn't get any sound. After digging into it for a while, I determine that the sound breakage was caused by removing the bundled libraries in bug 380173, specifically the bundled libSDL-1.2.so.0. Even though I have libSDL installed and working fine, with sound, for all my other games, I just couldn't get sound from World of Goo. If I added the bundled libSDL-1.2.so.0 back to the install directory, sound would work. Even found that running the 32-bit version of World of Goo without the bundled library would also give me sound, but the native 64-bit without the bundled library consistently failed. So, after more digging I found that I have libSDL compiled with USE="-alsa oss", because libSDL had a bug at one point in it's ALSA support that resulted in audio static whenever a game was played with libSDL using ALSA. Forcing it to uss OSS for the back end driver fixed that problem, so I left it like that. I recompiled libSDL with USE=alsa and bingo - sound worked great. I don't know *why* the game would care whether I'm using ALSA or not on the backend (doesn't that sort of defeat the purpose of using a middle layer library like SDL?), but regardless, it's needed to make sound work, at least on a 64-bit system. The attached patch updates the in-tree ebuild (world-of-goo-1.41-r1) to add the media-libs/libdsdl[alsa] dependency. As a bonus, it also fixes the duplicate binary install issue reported in bug 417187. Reproducible: Always
Created attachment 341174 [details, diff] world-of-goo-1.41-r1.patch
Created attachment 367548 [details, diff] world-of-goo-1.41-r1.ebuild.patch (new) Replacement patch which excludes the changes related to bug 417187 and bug 497668.