Fix crash when changing dimensions with multiple sounds playing.