From Robin's Wiki

IrateDev: MadplayReplacement

Replace your madplay binary with this script, and make it executable, in order to use mpg321 instead of madplay.

#!/usr/bin/python
<:vspace>
import sys
<:vspace>
import os
<:vspace>
os.system("killall mpg321");
<:vspace>
child = os.fork();
<:vspace>
if child!=0:
    os.system ("mpg321 \"" + sys.argv[4]+"\"")
    os.system( "kill "+str(child))
else:
    sys.stdin.read(1);
    os.system( "killall mpg321")
<:vspace>
Retrieved from http://www.kallisti.net.nz/IrateDev/MadplayReplacement
Page last modified on January 12, 2005, at 02:50 AM