| OLD | NEW |
| 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 792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 803 if ([delegate respondsToSelector:sel]) { | 803 if ([delegate respondsToSelector:sel]) { |
| 804 [delegate audioSessionDidChangeRoute:self | 804 [delegate audioSessionDidChangeRoute:self |
| 805 reason:reason | 805 reason:reason |
| 806 previousRoute:previousRoute]; | 806 previousRoute:previousRoute]; |
| 807 } | 807 } |
| 808 } | 808 } |
| 809 } | 809 } |
| 810 | 810 |
| 811 - (void)notifyMediaServicesWereLost { | 811 - (void)notifyMediaServicesWereLost { |
| 812 for (auto delegate : self.delegates) { | 812 for (auto delegate : self.delegates) { |
| 813 SEL sel = @selector(audioSessionMediaServicesWereLost:); | 813 SEL sel = @selector(audioSessionMediaServerTerminated:); |
| 814 if ([delegate respondsToSelector:sel]) { | 814 if ([delegate respondsToSelector:sel]) { |
| 815 [delegate audioSessionMediaServicesWereLost:self]; | 815 [delegate audioSessionMediaServerTerminated:self]; |
| 816 } | 816 } |
| 817 } | 817 } |
| 818 } | 818 } |
| 819 | 819 |
| 820 - (void)notifyMediaServicesWereReset { | 820 - (void)notifyMediaServicesWereReset { |
| 821 for (auto delegate : self.delegates) { | 821 for (auto delegate : self.delegates) { |
| 822 SEL sel = @selector(audioSessionMediaServicesWereReset:); | 822 SEL sel = @selector(audioSessionMediaServerReset:); |
| 823 if ([delegate respondsToSelector:sel]) { | 823 if ([delegate respondsToSelector:sel]) { |
| 824 [delegate audioSessionMediaServicesWereReset:self]; | 824 [delegate audioSessionMediaServerReset:self]; |
| 825 } | 825 } |
| 826 } | 826 } |
| 827 } | 827 } |
| 828 | 828 |
| 829 - (void)notifyDidChangeCanPlayOrRecord:(BOOL)canPlayOrRecord { | 829 - (void)notifyDidChangeCanPlayOrRecord:(BOOL)canPlayOrRecord { |
| 830 for (auto delegate : self.delegates) { | 830 for (auto delegate : self.delegates) { |
| 831 SEL sel = @selector(audioSession:didChangeCanPlayOrRecord:); | 831 SEL sel = @selector(audioSession:didChangeCanPlayOrRecord:); |
| 832 if ([delegate respondsToSelector:sel]) { | 832 if ([delegate respondsToSelector:sel]) { |
| 833 [delegate audioSession:self didChangeCanPlayOrRecord:canPlayOrRecord]; | 833 [delegate audioSession:self didChangeCanPlayOrRecord:canPlayOrRecord]; |
| 834 } | 834 } |
| (...skipping 12 matching lines...) Expand all Loading... |
| 847 - (void)notifyDidStopPlayOrRecord { | 847 - (void)notifyDidStopPlayOrRecord { |
| 848 for (auto delegate : self.delegates) { | 848 for (auto delegate : self.delegates) { |
| 849 SEL sel = @selector(audioSessionDidStopPlayOrRecord:); | 849 SEL sel = @selector(audioSessionDidStopPlayOrRecord:); |
| 850 if ([delegate respondsToSelector:sel]) { | 850 if ([delegate respondsToSelector:sel]) { |
| 851 [delegate audioSessionDidStopPlayOrRecord:self]; | 851 [delegate audioSessionDidStopPlayOrRecord:self]; |
| 852 } | 852 } |
| 853 } | 853 } |
| 854 } | 854 } |
| 855 | 855 |
| 856 @end | 856 @end |
| OLD | NEW |