Refactor to use the new alsamidi module.