Cleanup sceAudiocodec some

Really messy.  Not very well tested, though.  Should reduce the leak in #6171.

-[Unknown]