2005年05月9日
ALSA 下使用 RealPlayer
如果 Linux 以 ALSA 作輸出時 RealPlayer 即時有安裝了也不能啟動,因為 RealPlayer 並不支援 ALSA 輸出,以下方法能解決在 ALSA 的 Linux 下啟用 RealPlayer。
1:安裝相關套件
2:編輯 RealPlayer 啟動腳本
尋找:
取代:
主要是加入 aoss,讓系統使用 alsa-oss 開啟 RealPlayer。
realplayer
alsa-oss
2:編輯 RealPlayer 啟動腳本
vi /usr/lib/real-player/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。
引用URL
http://cgi.blog.roodo.com/trackback/117364