added available device checking in refreshAudioSessionmethod