more efficient replaygain scanning

except that it's causing an assertion failure in libuv