Introduction

This page describes how to using the xmmplayer plugin for XMMS to play RealAudio.

Procedure

  1. Download the plugin sources from http://thegraveyard.org/xmmplayer.php.

  2. Make sure the following packages are installed:
    • g++
    • xmms-dev
  3. Edit src/xmmplayer.c, locate the beginning of the function xmmplayer_is_our_file(), and right at the top of it insert:

    return(1); 
  4. Run:

    ./configure i486-gnu-linux
    make
    cd src
    ../libtool --mode=install /usr/bin/install -c  libxmmplayer.la ~/.xmms/Plugins/
    ../libtool --finish ~/.xmms/Plugins 
  5. 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.
  6. 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.

See also


CategoryProcedure

UsingXmmplayerForRealAudio (last edited 2011-09-28 10:35:56 by AlexisHuxley)