解決 linux 下 realplay沒有聲音的問題

參考:http://my.opera.com/FlyingCore/blog/2007/03/22/ubuntu-realplayer

要安裝 alsa-oss
sudo apt-get install alsa-oss
編輯 /opt/realplayer/realplay 或 /usr/bin/realplay

尋找
if [ -n "$DEBUG" -a -x "$CATCHSEGV" ]; then
$CATCHSEGV $REALPLAYBIN ${1+"$@"}
else
while /bin/true; do
# Restart the player if exit code is 10
$REALPLAYBIN "$@"
if [ $? -ne 10 ]; then
break
fi
done
fi

取代為

if [ -n "$DEBUG" -a -x "$CATCHSEGV" ]; then
$CATCHSEGV $REALPLAYBIN ${1+"$@"}
else
while /bin/true; do
# Restart the player if exit code is 10
aoss $REALPLAYBIN "$@"
if [ $? -ne 10 ]; then
break
fi
done
fi

主要是加入 aoss,讓系統使用 alsa-oss 開啟 RealPlayer.

留言

這個網誌中的熱門文章

[Linux] 如何 hex 字串 與 文字互轉

記下 openssh 中 sftp的log

[linux]用指令來做音量控制