Revert some changes that broke looping in midiplayer