Introduction
This page describes how to using the xmmplayer plugin for XMMS to play RealAudio.
Procedure
Download the plugin sources from http://thegraveyard.org/xmmplayer.php.
- Make sure the following packages are installed:
- g++
- xmms-dev
Edit src/xmmplayer.c, locate the beginning of the function xmmplayer_is_our_file(), and right at the top of it insert:
return(1);
Run:
./configure i486-gnu-linux make cd src ../libtool --mode=install /usr/bin/install -c libxmmplayer.la ~/.xmms/Plugins/ ../libtool --finish ~/.xmms/Plugins
Edit /usr/local/bin/xmms-mplayer-all to contain:
#!/bin/sh PROGNAME=$(basename $0) main() { while [ "X$1" != X ]; do case "$1" in # Options taking one argument -frames|-ao|-vo) push NEWARGV "$1" shift push NEWARGV "$1" ;; # Options taking zero arguments -identify|-fs|-slave|-nocache) push NEWARGV "$1" ;; # Options we don't know -*) error "unknown option \"$1\"" ;; # Specially handled URLs http://*/fmg2.rpm) push NEWARGV "-playlist" push NEWARGV "$1" ;; # Other URLs *) push NEWARGV "$1" ;; esac shift done exec mplayer "${NEWARGV[@]}" } push() { local ARRAY_REF VAL; ARRAY_REF="$1"; VAL="$2"; eval "$ARRAY_REF[\${#$ARRAY_REF[*]}]=\"\$VAL\""; } error() { echo "$PROGNAME: ERROR: $1" >&2; exit 1; } main "$@"and change the permissions of this file to 755.- Start xmms, in the preferences dialogue, configure the Mplayer input plugin, and set the path to mplayer to the path of the just-created script.
