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

Side by Side Diff: webrtc/modules/audio_device/audio_device_impl.cc

Issue 1344563002: Improving support for Android Audio Effects in WebRTC (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Improved comments Created 5 years, 3 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
OLDNEW
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 1851 matching lines...) Expand 10 before | Expand all | Expand 10 after
1862 return -1; 1862 return -1;
1863 } 1863 }
1864 1864
1865 return 0; 1865 return 0;
1866 } 1866 }
1867 1867
1868 // ---------------------------------------------------------------------------- 1868 // ----------------------------------------------------------------------------
1869 // GetLoudspeakerStatus 1869 // GetLoudspeakerStatus
1870 // ---------------------------------------------------------------------------- 1870 // ----------------------------------------------------------------------------
1871 1871
1872 int32_t AudioDeviceModuleImpl::GetLoudspeakerStatus(bool* enabled) const 1872 int32_t AudioDeviceModuleImpl::GetLoudspeakerStatus(bool* enabled) const {
1873 { 1873 CHECK_INITIALIZED();
1874 CHECK_INITIALIZED(); 1874 if (_ptrAudioDevice->GetLoudspeakerStatus(*enabled) != 0) {
1875 1875 return -1;
1876 if (_ptrAudioDevice->GetLoudspeakerStatus(*enabled) != 0) 1876 }
1877 { 1877 return 0;
1878 return -1;
1879 }
1880
1881 return 0;
1882 } 1878 }
1883 1879
1884 int32_t AudioDeviceModuleImpl::EnableBuiltInAEC(bool enable) 1880 bool AudioDeviceModuleImpl::BuiltInAECIsEnabled() const {
1885 { 1881 CHECK_INITIALIZED_BOOL();
1886 CHECK_INITIALIZED(); 1882 return _ptrAudioDevice->BuiltInAECIsEnabled();
1887 return _ptrAudioDevice->EnableBuiltInAEC(enable);
1888 }
1889
1890 bool AudioDeviceModuleImpl::BuiltInAECIsEnabled() const
1891 {
1892 CHECK_INITIALIZED_BOOL();
1893
1894 return _ptrAudioDevice->BuiltInAECIsEnabled();
1895 } 1883 }
1896 1884
1897 bool AudioDeviceModuleImpl::BuiltInAECIsAvailable() const { 1885 bool AudioDeviceModuleImpl::BuiltInAECIsAvailable() const {
1898 CHECK_INITIALIZED_BOOL(); 1886 CHECK_INITIALIZED_BOOL();
1899 return _ptrAudioDevice->BuiltInAECIsAvailable(); 1887 return _ptrAudioDevice->BuiltInAECIsAvailable();
1900 } 1888 }
1901 1889
1890 int32_t AudioDeviceModuleImpl::EnableBuiltInAEC(bool enable) {
1891 CHECK_INITIALIZED();
1892 return _ptrAudioDevice->EnableBuiltInAEC(enable);
1893 }
1894
1895 bool AudioDeviceModuleImpl::BuiltInAGCIsAvailable() const {
1896 CHECK_INITIALIZED_BOOL();
1897 return _ptrAudioDevice->BuiltInAGCIsAvailable();
1898 }
1899
1900 int32_t AudioDeviceModuleImpl::EnableBuiltInAGC(bool enable) {
1901 CHECK_INITIALIZED();
1902 return _ptrAudioDevice->EnableBuiltInAGC(enable);
1903 }
1904
1905 bool AudioDeviceModuleImpl::BuiltInNSIsAvailable() const {
1906 CHECK_INITIALIZED_BOOL();
1907 return _ptrAudioDevice->BuiltInNSIsAvailable();
1908 }
1909
1910 int32_t AudioDeviceModuleImpl::EnableBuiltInNS(bool enable) {
1911 CHECK_INITIALIZED();
1912 return _ptrAudioDevice->EnableBuiltInNS(enable);
1913 }
1914
1902 int AudioDeviceModuleImpl::GetPlayoutAudioParameters( 1915 int AudioDeviceModuleImpl::GetPlayoutAudioParameters(
1903 AudioParameters* params) const { 1916 AudioParameters* params) const {
1904 return _ptrAudioDevice->GetPlayoutAudioParameters(params); 1917 return _ptrAudioDevice->GetPlayoutAudioParameters(params);
1905 } 1918 }
1906 1919
1907 int AudioDeviceModuleImpl::GetRecordAudioParameters( 1920 int AudioDeviceModuleImpl::GetRecordAudioParameters(
1908 AudioParameters* params) const { 1921 AudioParameters* params) const {
1909 return _ptrAudioDevice->GetRecordAudioParameters(params); 1922 return _ptrAudioDevice->GetRecordAudioParameters(params);
1910 } 1923 }
1911 1924
(...skipping 13 matching lines...) Expand all
1925 // ---------------------------------------------------------------------------- 1938 // ----------------------------------------------------------------------------
1926 // PlatformAudioLayer 1939 // PlatformAudioLayer
1927 // ---------------------------------------------------------------------------- 1940 // ----------------------------------------------------------------------------
1928 1941
1929 AudioDeviceModule::AudioLayer AudioDeviceModuleImpl::PlatformAudioLayer() const 1942 AudioDeviceModule::AudioLayer AudioDeviceModuleImpl::PlatformAudioLayer() const
1930 { 1943 {
1931 return _platformAudioLayer; 1944 return _platformAudioLayer;
1932 } 1945 }
1933 1946
1934 } // namespace webrtc 1947 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_device/audio_device_impl.h ('k') | webrtc/modules/audio_device/include/audio_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698