Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(144)

Side by Side Diff: webrtc/modules/audio_device/ios/objc/RTCAudioSession+Private.h

Issue 2181163005: Treat foreground event as interruption end. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/modules/audio_device/ios/objc/RTCAudioSession.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2016 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 13 matching lines...) Expand all
24 @property(nonatomic, readonly) int activationCount; 24 @property(nonatomic, readonly) int activationCount;
25 25
26 /** The number of times |beginWebRTCSession| was called without a balanced call 26 /** The number of times |beginWebRTCSession| was called without a balanced call
27 * to |endWebRTCSession|. 27 * to |endWebRTCSession|.
28 */ 28 */
29 @property(nonatomic, readonly) int webRTCSessionCount; 29 @property(nonatomic, readonly) int webRTCSessionCount;
30 30
31 /** Convenience BOOL that checks useManualAudio and isAudioEnebled. */ 31 /** Convenience BOOL that checks useManualAudio and isAudioEnebled. */
32 @property(readonly) BOOL canPlayOrRecord; 32 @property(readonly) BOOL canPlayOrRecord;
33 33
34 /** Tracks whether we have been sent an interruption event that hasn't been matc hed by either an
35 * interrupted end event or a foreground event.
36 */
37 @property(nonatomic, assign) BOOL isInterrupted;
38
34 - (BOOL)checkLock:(NSError **)outError; 39 - (BOOL)checkLock:(NSError **)outError;
35 40
36 /** Adds the delegate to the list of delegates, and places it at the front of 41 /** Adds the delegate to the list of delegates, and places it at the front of
37 * the list. This delegate will be notified before other delegates of 42 * the list. This delegate will be notified before other delegates of
38 * audio events. 43 * audio events.
39 */ 44 */
40 - (void)pushDelegate:(id<RTCAudioSessionDelegate>)delegate; 45 - (void)pushDelegate:(id<RTCAudioSessionDelegate>)delegate;
41 46
42 /** Signals RTCAudioSession that a WebRTC session is about to begin and 47 /** Signals RTCAudioSession that a WebRTC session is about to begin and
43 * audio configuration is needed. Will configure the audio session for WebRTC 48 * audio configuration is needed. Will configure the audio session for WebRTC
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 previousRoute:(AVAudioSessionRouteDescription *)previousRoute; 87 previousRoute:(AVAudioSessionRouteDescription *)previousRoute;
83 - (void)notifyMediaServicesWereLost; 88 - (void)notifyMediaServicesWereLost;
84 - (void)notifyMediaServicesWereReset; 89 - (void)notifyMediaServicesWereReset;
85 - (void)notifyDidChangeCanPlayOrRecord:(BOOL)canPlayOrRecord; 90 - (void)notifyDidChangeCanPlayOrRecord:(BOOL)canPlayOrRecord;
86 - (void)notifyDidStartPlayOrRecord; 91 - (void)notifyDidStartPlayOrRecord;
87 - (void)notifyDidStopPlayOrRecord; 92 - (void)notifyDidStopPlayOrRecord;
88 93
89 @end 94 @end
90 95
91 NS_ASSUME_NONNULL_END 96 NS_ASSUME_NONNULL_END
OLDNEW
« no previous file with comments | « webrtc/modules/audio_device/ios/objc/RTCAudioSession.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698