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.)

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

user12614486

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today