replaygainproto.liq
# This would usually be done at the beginning of a script,
# although it does not matter.
def replaygain_protocol(arg,delay)
x = get_process_lines("/to/replaygain.pl #{quote(arg)}")
if list.hd(x) != "" then
"annotate:replay_gain=\"#{list.hd(x)}\":#{arg}"
else
arg
end
end
add_protocol("replay_gain",replaygain_protocol)
Download