ios 检测声音支持

    BOOL bAudioInputAvailable = NO;
	AVAudioSession *audioSession = [AVAudioSession sharedInstance];
    if ([[UIDevice currentDevice].systemVersion floatValue] >= 6.0) {
        
        bAudioInputAvailable = [audioSession isInputAvailable];
        
    }
    else
    {
        
        bAudioInputAvailable = [audioSession inputIsAvailable];
        
    }

posted @ 2014-03-11 14:59  沙影无痕  阅读(344)  评论(0编辑  收藏  举报