Chromium Code Reviews| Index: webrtc/modules/audio_device/ios/objc/RTCAudioSession.mm |
| diff --git a/webrtc/modules/audio_device/ios/objc/RTCAudioSession.mm b/webrtc/modules/audio_device/ios/objc/RTCAudioSession.mm |
| index 4d9b9774408a52d80da7df2b054651418eec53bc..694fd045eb02d9f0181877c2dfb97677f6e2d5ec 100644 |
| --- a/webrtc/modules/audio_device/ios/objc/RTCAudioSession.mm |
| +++ b/webrtc/modules/audio_device/ios/objc/RTCAudioSession.mm |
| @@ -86,12 +86,14 @@ NSInteger const kRTCAudioSessionErrorConfiguration = -2; |
| selector:@selector(handleApplicationDidBecomeActive:) |
| name:UIApplicationDidBecomeActiveNotification |
| object:nil]; |
| + RTCLog(@"RTCAudioSession init: (%p)", self); |
|
tkchin_webrtc
2017/03/29 20:02:51
nit: "RTCAudioSession (%p): init"
(usually ptr val
Chuck
2017/03/29 20:29:18
Done.
|
| } |
| return self; |
| } |
| - (void)dealloc { |
| [[NSNotificationCenter defaultCenter] removeObserver:self]; |
| + RTCLog(@"RTCAudioSession dealloc: (%p)", self); |
| } |
| - (NSString *)description { |
| @@ -167,6 +169,7 @@ NSInteger const kRTCAudioSessionErrorConfiguration = -2; |
| // TODO(tkchin): Check for duplicates. |
| - (void)addDelegate:(id<RTCAudioSessionDelegate>)delegate { |
| + RTCLog(@"Adding delegate: (%p)", delegate); |
| if (!delegate) { |
| return; |
| } |
| @@ -177,6 +180,7 @@ NSInteger const kRTCAudioSessionErrorConfiguration = -2; |
| } |
| - (void)removeDelegate:(id<RTCAudioSessionDelegate>)delegate { |
| + RTCLog(@"Removing delegate: (%p)", delegate); |
| if (!delegate) { |
| return; |
| } |
| @@ -545,8 +549,9 @@ NSInteger const kRTCAudioSessionErrorConfiguration = -2; |
| RTCLog(@"Application became active after an interruption. Treating as interruption end."); |
| self.isInterrupted = NO; |
| [self updateAudioSessionAfterEvent]; |
| - [self notifyDidEndInterruptionWithShouldResumeSession:YES]; |
| } |
| + // Always treat application becoming active as an interruption end event. |
| + [self notifyDidEndInterruptionWithShouldResumeSession:YES]; |
|
tkchin_webrtc
2017/03/29 20:02:51
Hm. I don't recall the details here - but can you
Chuck
2017/03/29 20:29:18
Modified the logging here so it always logs someth
|
| } |
| #pragma mark - Private |