View previous topic :: View next topic |
Author |
Message |
WTFman Apprentice
Joined: 04 Apr 2005 Posts: 153
|
Posted: Fri May 27, 2005 5:11 am Post subject: How do I configure Realplayer to deliver sound w/ soundmixin |
|
|
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 |
|
|
ppurka Advocate
Joined: 26 Dec 2004 Posts: 3256
|
Posted: Fri May 27, 2005 5:27 pm Post subject: |
|
|
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 |
|
|
gimpel Advocate
Joined: 15 Oct 2004 Posts: 2720 Location: Munich, Bavaria
|
Posted: Fri May 27, 2005 5:45 pm Post subject: |
|
|
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 |
|
|
|
|
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
|
|