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

Side by Side Diff: webrtc/modules/audio_device/ios/objc/RTCAudioSession.mm

Issue 2360583002: Adds output audio volume to iOS logs (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 " category: %@\n" 94 " category: %@\n"
95 " categoryOptions: %ld\n" 95 " categoryOptions: %ld\n"
96 " mode: %@\n" 96 " mode: %@\n"
97 " isActive: %d\n" 97 " isActive: %d\n"
98 " sampleRate: %.2f\n" 98 " sampleRate: %.2f\n"
99 " IOBufferDuration: %f\n" 99 " IOBufferDuration: %f\n"
100 " outputNumberOfChannels: %ld\n" 100 " outputNumberOfChannels: %ld\n"
101 " inputNumberOfChannels: %ld\n" 101 " inputNumberOfChannels: %ld\n"
102 " outputLatency: %f\n" 102 " outputLatency: %f\n"
103 " inputLatency: %f\n" 103 " inputLatency: %f\n"
104 " outputVolume: %f\n"
104 "}"; 105 "}";
105 NSString *description = [NSString stringWithFormat:format, 106 NSString *description = [NSString stringWithFormat:format,
106 self.category, (long)self.categoryOptions, self.mode, 107 self.category, (long)self.categoryOptions, self.mode,
107 self.isActive, self.sampleRate, self.IOBufferDuration, 108 self.isActive, self.sampleRate, self.IOBufferDuration,
108 self.outputNumberOfChannels, self.inputNumberOfChannels, 109 self.outputNumberOfChannels, self.inputNumberOfChannels,
109 self.outputLatency, self.inputLatency]; 110 self.outputLatency, self.inputLatency, self.outputVolume];
110 return description; 111 return description;
111 } 112 }
112 113
113 - (void)setIsActive:(BOOL)isActive { 114 - (void)setIsActive:(BOOL)isActive {
114 @synchronized(self) { 115 @synchronized(self) {
115 _isActive = isActive; 116 _isActive = isActive;
116 } 117 }
117 } 118 }
118 119
119 - (BOOL)isActive { 120 - (BOOL)isActive {
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after
822 - (void)notifyDidStopPlayOrRecord { 823 - (void)notifyDidStopPlayOrRecord {
823 for (auto delegate : self.delegates) { 824 for (auto delegate : self.delegates) {
824 SEL sel = @selector(audioSessionDidStopPlayOrRecord:); 825 SEL sel = @selector(audioSessionDidStopPlayOrRecord:);
825 if ([delegate respondsToSelector:sel]) { 826 if ([delegate respondsToSelector:sel]) {
826 [delegate audioSessionDidStopPlayOrRecord:self]; 827 [delegate audioSessionDidStopPlayOrRecord:self];
827 } 828 }
828 } 829 }
829 } 830 }
830 831
831 @end 832 @end
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698