解决flash出现杂音的问题(请注意,新的解决方法)

最大的社区版本,Ubuntu的发源地
回复
头像
zhanshime
帖子: 108
注册时间: 2009-02-25 17:14
来自: http://hi.baidu.com/jinzhanshi/

解决flash出现杂音的问题(请注意,新的解决方法)

#1

帖子 zhanshime » 2011-06-07 22:14

这几天系统更新后,下面方法失效,原因是memcpy-preload.so文件位置改变,要解决很简单,只要将原路径/usr/lib/libc/memcpy-preload.so改为/usr/lib/x86_64-linux-gnu/libc/memcpy-preload.so即可
前些天我的64位testing系统系统更新后,出现了flash杂音的问题,今天终于找到解决方法
1.用root权限编辑/etc/ld.so.preload(LMDE中不存在此文件),加入下面一行
/usr/lib/libc/memcpy-preload.so(不行就改为/usr/lib/x86_64-linux-gnu/libc/memcpy-preload.so)
这一种方法对整个系统通用,可能对其他软件产生影响,不建议使用,
2.重点推荐
系统中的浏览器都是由在/usr/bin中的与浏览器同名的脚本文件启动的.你可以对其进行编辑加入环境变量进行连接库文件进行预载.对firefox浏览器,用sudo权限编辑/usr/bin/firefox,将
export LD_PRELOAD=/usr/lib/libc/memcpy-preload.so(不行就改为export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libc/memcpy-preload.so)加入文件的第一行就可以了

1. edit /etc/ld.so.preload as root (this file does not exist on a stock version of LMDE). add this single line:

/usr/lib/libc/memcpy-preload.so

This will apply the patch system-wide.

2. Each web browser on your system is started by a bash script of the same name in /usr/bin (if you don't know what this means, fear not). You can add environment variables to these bash scripts like defining exactly this type of library preload. so if you edit, say, /usr/bin/firefox as root (or via sudo), you just need to add a line like this:

export LD_PRELOAD=/usr/lib/libc/memcpy-preload.so

toward the top of the file (the export probably isn't necessary in all cases, but just in case). I've tested this with iceweasel, firefox, opera, and chromium. All now produce flawless sound and the flashplayer can play at the same time as other apps if you've setup pulseaudio to do so.
方法来源http://forums.linuxmint.com/viewtopic.php?f=141&t=73108
上次由 zhanshime 在 2011-06-25 9:57,总共编辑 1 次。
黛玉道:“宝姐姐和你好你怎么样?宝姐姐不和你好你怎么样?宝姐姐前儿和你好,如今不和你好你怎么样?今儿和你好,后来不和你好你怎么样?你和他好他偏不和你好你怎么样?你不和他好他偏要和你好你怎么样?”
宝玉呆了半晌,忽然大笑道:“任凭弱水三千,我只取一瓢饮。”
lam2888
帖子: 23
注册时间: 2009-10-16 1:16

Re: 解决flash出现杂音的问题

#2

帖子 lam2888 » 2011-06-08 23:17

顶!支持。原来还以为只能听SOSO音乐了。 :em02
回复