Audio: fixed crash on OSX happening on end of playback