fix crash on sound issue

on OS X , sound device is not created