Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How do I configure Realplayer to deliver sound w/ soundmixin
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
WTFman
Apprentice
Apprentice


Joined: 04 Apr 2005
Posts: 153

PostPosted: Fri May 27, 2005 5:11 am    Post subject: How do I configure Realplayer to deliver sound w/ soundmixin Reply with quote

Allright, I've read the Wiki on how to use soundmixing, but most programs require some configuration, I got Firefox, Gaim, Mplayer, and XMMS all working but now I'm trying to configure Realplayer. I've downloaded and installed it in /usr/local, the default shellscript looks like this:
Code:

#!/bin/sh

# If you don't have readlink, fill in the path to hxplay.bin here.
# HELIX_LIBS="/usr/local/HelixPlayer" ; export HELIX_LIBS

# To install this script, create a symlink to it from somewhere in your
# path.  Do *not* move the script out of the HelixPlayer directory, since
# it relies on the true location of hxplay to derive the location of the
# HelixPlayer directory

# REALPLAYSYMLINK and REALPLAYSCRIPT are only used to derive REALPLAYDIR

if [ ! -d "$HELIX_LIBS" ]; then
    REALPLAYSCRIPT=""
   
    if [ -h "$0" ]; then
        REALPLAYSYMLINK=`which $0`

        # Search for something we can use as readlink
        READLINK=`which readlink` 2> /dev/null;
        PERL=`which perl` 2> /dev/null;
        PYTHON=`which python` 2> /dev/null;
        if [ -x "$READLINK" ] ; then
            # echo "Using readlink"
            REALPLAYSCRIPT=`$READLINK $REALPLAYSYMLINK`
        elif [ -x "$PERL" ] ; then
            # echo "Using perl"
            REALPLAYSCRIPT=`$PERL -e 'print readlink($ARGV[0])' -- $REALPLAYSYMLINK`           
        elif [ -x "$PYTHON" ] ; then
            # echo "Using python"
            REALPLAYSCRIPT=`echo 'import os; print os.readlink("/usr/local/bin/hxplay")' | $PYTHON -`
        else
            # echo "Using ls (directory name cannot contain spaces)"
            REALPLAYSCRIPT=`ls -l $REALPLAYSYMLINK | sed -e 's/.* //'`
        fi
    else
        REALPLAYSCRIPT=`which $0`
    fi

    if [ ! -x "$REALPLAYSCRIPT" ] ; then
        echo "Cannot find the HelixPlayer directory."
        echo "Please set the path in the hxplay script."
        exit
    fi

    # if REALPLAYDIR detection doesn't work, hardcode the directory here
    REALPLAYDIR=`dirname $REALPLAYSCRIPT`

    # setup environment
    # find our common, plugin and codec dlls
    HELIX_LIBS=$REALPLAYDIR
    export HELIX_LIBS
fi

# See if LD_PRELOAD contains any of the sound server libs. If so, remove them.
LD_PRELOAD=`echo $LD_PRELOAD | sed -e 's/\([^:]*libesd[^:]*\|[^:]*libarts[^:]*\):\?//g'`
export LD_PRELOAD

if [ -n "$LD_PRELOAD" ]; then
    echo "Warning: LD_PRELOAD=\"$LD_PRELOAD\""
fi
   
# execute binary (and pass args), optionally running via catchsegv
REALPLAYBIN=$HELIX_LIBS/realplay.bin
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

Now I know I want to add this line:
Code:
aoss /usr/local/RealPlayer/realplay "$@"

But I'm just not sure where or how to get it to work right (and get it to work properly in Firefox) If anyone can post there realplay file and/or tell me if there are any additional steps I need to take, it would be a huge help.
_________________
Occupation: Professional Slacker
Hobbies/Interests: Open Source Aficionado since 2005
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3256

PostPosted: Fri May 27, 2005 5:27 pm    Post subject: Reply with quote

Quote:
Now I know I want to add this line:
Code:
aoss /usr/local/RealPlayer/realplay "$@"

But I'm just not sure where or how to get it to work right (and get it to work properly in Firefox) If anyone can post there realplay file and/or tell me if there are any additional steps I need to take, it would be a huge help.
One option is, you can replace the /usr/bin/realplay file (which is a symlink to /usr/local/RealPlayer/realplay) with
Code:
#!/bin/bash
aoss /usr/local/RealPlayer/realplay "$@"
Back to top
View user's profile Send private message
gimpel
Advocate
Advocate


Joined: 15 Oct 2004
Posts: 2720
Location: Munich, Bavaria

PostPosted: Fri May 27, 2005 5:45 pm    Post subject: Reply with quote

2. possibility would be to edit the realplay script:

after this:

Code:
if [ -n "$LD_PRELOAD" ]; then
    echo "Warning: LD_PRELOAD=\"$LD_PRELOAD\""
fi


add that:

Code:
LD_PRELOAD="$LDPRELOAD:/usr/lib/libaoss.so"
export LD_PRELOAD


i'm trying to get that working too atm, but on my box realplayer or aoss crashes, not quite sure which of them...
_________________
http://proaudio.tuxfamily.org/wiki - pro-audio software overlay
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum