OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 1762 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1773 LOG(INFO) << __FUNCTION__; | 1773 LOG(INFO) << __FUNCTION__; |
1774 CHECK_INITIALIZED(); | 1774 CHECK_INITIALIZED(); |
1775 int32_t ok = 0; | 1775 int32_t ok = 0; |
1776 if (_ptrAudioDevice->GetLoudspeakerStatus(*enabled) != 0) { | 1776 if (_ptrAudioDevice->GetLoudspeakerStatus(*enabled) != 0) { |
1777 ok = -1; | 1777 ok = -1; |
1778 } | 1778 } |
1779 LOG(INFO) << "output: " << ok; | 1779 LOG(INFO) << "output: " << ok; |
1780 return ok; | 1780 return ok; |
1781 } | 1781 } |
1782 | 1782 |
1783 bool AudioDeviceModuleImpl::BuiltInAECIsEnabled() const { | |
1784 LOG(INFO) << __FUNCTION__; | |
1785 CHECK_INITIALIZED_BOOL(); | |
1786 bool isEnabled = _ptrAudioDevice->BuiltInAECIsEnabled(); | |
1787 LOG(INFO) << "output: " << isEnabled; | |
1788 return isEnabled; | |
1789 } | |
1790 | |
1791 bool AudioDeviceModuleImpl::BuiltInAECIsAvailable() const { | 1783 bool AudioDeviceModuleImpl::BuiltInAECIsAvailable() const { |
1792 LOG(INFO) << __FUNCTION__; | 1784 LOG(INFO) << __FUNCTION__; |
1793 CHECK_INITIALIZED_BOOL(); | 1785 CHECK_INITIALIZED_BOOL(); |
1794 bool isAvailable = _ptrAudioDevice->BuiltInAECIsAvailable(); | 1786 bool isAvailable = _ptrAudioDevice->BuiltInAECIsAvailable(); |
1795 LOG(INFO) << "output: " << isAvailable; | 1787 LOG(INFO) << "output: " << isAvailable; |
1796 return isAvailable; | 1788 return isAvailable; |
1797 } | 1789 } |
1798 | 1790 |
1799 int32_t AudioDeviceModuleImpl::EnableBuiltInAEC(bool enable) { | 1791 int32_t AudioDeviceModuleImpl::EnableBuiltInAEC(bool enable) { |
1800 LOG(INFO) << __FUNCTION__ << "(" << enable << ")"; | 1792 LOG(INFO) << __FUNCTION__ << "(" << enable << ")"; |
(...skipping 28 matching lines...) Expand all Loading... |
1829 } | 1821 } |
1830 | 1822 |
1831 int32_t AudioDeviceModuleImpl::EnableBuiltInNS(bool enable) { | 1823 int32_t AudioDeviceModuleImpl::EnableBuiltInNS(bool enable) { |
1832 LOG(INFO) << __FUNCTION__ << "(" << enable << ")"; | 1824 LOG(INFO) << __FUNCTION__ << "(" << enable << ")"; |
1833 CHECK_INITIALIZED(); | 1825 CHECK_INITIALIZED(); |
1834 int32_t ok = _ptrAudioDevice->EnableBuiltInNS(enable); | 1826 int32_t ok = _ptrAudioDevice->EnableBuiltInNS(enable); |
1835 LOG(INFO) << "output: " << ok; | 1827 LOG(INFO) << "output: " << ok; |
1836 return ok; | 1828 return ok; |
1837 } | 1829 } |
1838 | 1830 |
| 1831 #if defined(WEBRTC_IOS) |
1839 int AudioDeviceModuleImpl::GetPlayoutAudioParameters( | 1832 int AudioDeviceModuleImpl::GetPlayoutAudioParameters( |
1840 AudioParameters* params) const { | 1833 AudioParameters* params) const { |
1841 LOG(INFO) << __FUNCTION__; | 1834 LOG(INFO) << __FUNCTION__; |
1842 int r = _ptrAudioDevice->GetPlayoutAudioParameters(params); | 1835 int r = _ptrAudioDevice->GetPlayoutAudioParameters(params); |
1843 LOG(INFO) << "output: " << r; | 1836 LOG(INFO) << "output: " << r; |
1844 return r; | 1837 return r; |
1845 } | 1838 } |
1846 | 1839 |
1847 int AudioDeviceModuleImpl::GetRecordAudioParameters( | 1840 int AudioDeviceModuleImpl::GetRecordAudioParameters( |
1848 AudioParameters* params) const { | 1841 AudioParameters* params) const { |
1849 LOG(INFO) << __FUNCTION__; | 1842 LOG(INFO) << __FUNCTION__; |
1850 int r = _ptrAudioDevice->GetRecordAudioParameters(params); | 1843 int r = _ptrAudioDevice->GetRecordAudioParameters(params); |
1851 LOG(INFO) << "output: " << r; | 1844 LOG(INFO) << "output: " << r; |
1852 return r; | 1845 return r; |
1853 } | 1846 } |
| 1847 #endif // WEBRTC_IOS |
1854 | 1848 |
1855 // ============================================================================ | 1849 // ============================================================================ |
1856 // Private Methods | 1850 // Private Methods |
1857 // ============================================================================ | 1851 // ============================================================================ |
1858 | 1852 |
1859 // ---------------------------------------------------------------------------- | 1853 // ---------------------------------------------------------------------------- |
1860 // Platform | 1854 // Platform |
1861 // ---------------------------------------------------------------------------- | 1855 // ---------------------------------------------------------------------------- |
1862 | 1856 |
1863 AudioDeviceModuleImpl::PlatformType AudioDeviceModuleImpl::Platform() const { | 1857 AudioDeviceModuleImpl::PlatformType AudioDeviceModuleImpl::Platform() const { |
1864 LOG(INFO) << __FUNCTION__; | 1858 LOG(INFO) << __FUNCTION__; |
1865 return _platformType; | 1859 return _platformType; |
1866 } | 1860 } |
1867 | 1861 |
1868 // ---------------------------------------------------------------------------- | 1862 // ---------------------------------------------------------------------------- |
1869 // PlatformAudioLayer | 1863 // PlatformAudioLayer |
1870 // ---------------------------------------------------------------------------- | 1864 // ---------------------------------------------------------------------------- |
1871 | 1865 |
1872 AudioDeviceModule::AudioLayer AudioDeviceModuleImpl::PlatformAudioLayer() | 1866 AudioDeviceModule::AudioLayer AudioDeviceModuleImpl::PlatformAudioLayer() |
1873 const { | 1867 const { |
1874 LOG(INFO) << __FUNCTION__; | 1868 LOG(INFO) << __FUNCTION__; |
1875 return _platformAudioLayer; | 1869 return _platformAudioLayer; |
1876 } | 1870 } |
1877 | 1871 |
1878 } // namespace webrtc | 1872 } // namespace webrtc |
OLD | NEW |