2017-10-03 3 views
1

私はAVAudioSessionRouteChangeReason通知を調査しています。 そのうちの一つは、Appleのドキュメントによるとこのシナリオでは、AVAudioSessionRouteChangeReasonRouteConfigurationChangeを呼び出すことができます

AVAudioSessionRouteChangeReasonRouteConfigurationChange 

です: AVAudioSessionRouteChangeReasonRouteConfigurationChange

入力ポートと出力ポートのセットが変更されていないが、その構成があり。たとえば、ポートの選択したデータソースが変更されました。

AVAudioSessionRouteChangeReasonRouteConfigurationChangeを呼び出すことができるシナリオはあまり明確ではありません。もし誰かがポートの選択されたデータソースが意味を変えたとしたら、

おかげ

答えて

0

私も「ドク」の答えを探していますが、私はまた、いくつかの例を提供することができます。

{ 
AVAudioSessionRouteChangePreviousRouteKey = "<AVAudioSessionRouteDescription: 0x1c001e380, \ninputs = (null); \noutputs = (\n \"<AVAudioSessionPortDescription: 0x1c001e4d0, type = Speaker; name = G\\U0142o\\U015bnik; UID = Speaker; selectedDataSource = (null)>\"\n)>";  
AVAudioSessionRouteChangeReasonKey = 8; 
} 

と新しいルートだった:

<AVAudioSessionRouteDescription: 0x1c401de70, 
inputs = (
    "<AVAudioSessionPortDescription: 0x1c401dac0, type = MicrophoneBuiltIn; name = iPhone Mikrofon; UID = Built-In Microphone; selectedDataSource = Bottom>" 
); 
outputs = (
    "<AVAudioSessionPortDescription: 0x1c401df10, type = Speaker; name = G\U0142o\U015bnik; UID = Speaker; selectedDataSource = (null)>" 
)> 

だから、それは下にヌルから変更マイクの選択したデータソースのように見えるの電話の後、私はAVAudioSessionInterruptionTypeEnded通知を受信し、それこの1つは後に終了。

関連する問題