Wednesday June 08, 2005 Removing silly warnings from xmms's libSolaris.so output plugin
Here's a procedure for patching /opt/sfw/lib/xmms/Output/libSolaris.so, to get rid of the warnings that appear on the console if you're using a soundcard xmms doesn't know by name:
** WARNING **: solaris output: Unknown sound card type: SUNW,audio810 ** WARNING **: solaris output: Assuming capable of the bitstream
If you get those, and are annoyed, and don't want to be bothered rebuilding xmms with the latest plugin source, try this:
$ su - # cd /opt/sfw/lib/xmms/Output # cp libSolaris.so libSolaris.so.orig # mdb -w libSolaris.so > 442d?5B 0x442d: ff 75 b0 8d 83
If you don't see these values, stop now
> 442d?v e9 26 00 00 00 0x442d: 0xff = 0xe9 0x442e: 0x75 = 0x26 0x442f: 0xb0 = 0x0 0x4430: 0x8d = 0x0 0x4431: 0x83 = 0x0 > $q
Restart xmms, and you should be done. If anything goes wrong, of course, just copy libSolaris.so.orig back to libSolaris.so.
(What this does is to add a "jmp" around the two calls to g_warning() (really a #define for g_log()) for those two warnings.) ( Jun 08 2005, 11:47:32 PM PDT ) Permalink Comments [0]