Adapt to new libmad.js API.