List available output audio target AVAudioSession

后端 未结 4 1601
慢半拍i
慢半拍i 2020-12-14 16:20

I need to list the audio outputs available to an iOS application. My question is similar to this one: How to list available audio output route on iOS

i tried this co

4条回答
  •  清歌不尽
    2020-12-14 16:49

    AVAudioSessionRouteDescription *currentRoute = [[AVAudioSession sharedInstance] currentRoute];
        for (AVAudioSessionPortDescription *output in currentRoute.outputs) {
    
        }
    

提交回复
热议问题