Thanks to open source soundmanager2