- Timestamp:
- Aug 27, 2015 2:23:55 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia-audiodev/coreaudio_dev.m
r5142 r5171 2083 2083 #if !COREAUDIO_MAC 2084 2084 if (should_deactivate) { 2085 if ([stream->sess setActive:false error:nil] != YES) { 2086 PJ_LOG(4, (THIS_FILE, "Warning: cannot deactivate audio session")); 2085 if ([stream->sess 2086 respondsToSelector:@selector(setActive:withOptions:error:)]) 2087 { 2088 [stream->sess setActive:NO 2089 withOptions:AVAudioSessionSetActiveOptionNotifyOthersOnDeactivation 2090 error:nil]; 2091 } else { 2092 if ([stream->sess setActive:NO error:nil] != YES) { 2093 PJ_LOG(4, (THIS_FILE, "Warning: cannot deactivate " 2094 "audio session")); 2095 } 2087 2096 } 2088 2097 }
Note: See TracChangeset
for help on using the changeset viewer.