OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 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 |
11 #include "webrtc/modules/audio_device/audio_device_generic.h" | 11 #include "webrtc/modules/audio_device/audio_device_generic.h" |
12 #include "webrtc/system_wrappers/interface/trace.h" | 12 #include "webrtc/system_wrappers/interface/trace.h" |
13 | 13 |
14 namespace webrtc { | 14 namespace webrtc { |
15 | 15 |
16 int32_t AudioDeviceGeneric::SetRecordingSampleRate( | 16 int32_t AudioDeviceGeneric::SetRecordingSampleRate( |
17 const uint32_t samplesPerSec) | 17 const uint32_t samplesPerSec) { |
18 { | 18 WEBRTC_TRACE(kTraceError, kTraceAudioDevice, -1, |
tkchin_webrtc
2015/07/06 03:46:28
These traces were removed in the other file, did y
henrika_webrtc
2015/07/07 16:01:38
Let me fix it ;-)
| |
19 WEBRTC_TRACE(kTraceError, kTraceAudioDevice, -1, | 19 "Set recording sample rate not supported on this platform"); |
20 "Set recording sample rate not supported on this platform"); | 20 return -1; |
21 return -1; | |
22 } | 21 } |
23 | 22 |
24 int32_t AudioDeviceGeneric::SetPlayoutSampleRate( | 23 int32_t AudioDeviceGeneric::SetPlayoutSampleRate(const uint32_t samplesPerSec) { |
25 const uint32_t samplesPerSec) | 24 WEBRTC_TRACE(kTraceError, kTraceAudioDevice, -1, |
26 { | 25 "Set playout sample rate not supported on this platform"); |
27 WEBRTC_TRACE(kTraceError, kTraceAudioDevice, -1, | 26 return -1; |
28 "Set playout sample rate not supported on this platform"); | |
29 return -1; | |
30 } | 27 } |
31 | 28 |
32 int32_t AudioDeviceGeneric::SetLoudspeakerStatus(bool enable) | 29 int32_t AudioDeviceGeneric::SetLoudspeakerStatus(bool enable) { |
33 { | 30 WEBRTC_TRACE(kTraceError, kTraceAudioDevice, -1, |
34 WEBRTC_TRACE(kTraceError, kTraceAudioDevice, -1, | 31 "Set loudspeaker status not supported on this platform"); |
35 "Set loudspeaker status not supported on this platform"); | 32 return -1; |
36 return -1; | |
37 } | 33 } |
38 | 34 |
39 int32_t AudioDeviceGeneric::GetLoudspeakerStatus(bool& enable) const | 35 int32_t AudioDeviceGeneric::GetLoudspeakerStatus(bool& enable) const { |
40 { | 36 WEBRTC_TRACE(kTraceError, kTraceAudioDevice, -1, |
41 WEBRTC_TRACE(kTraceError, kTraceAudioDevice, -1, | 37 "Get loudspeaker status not supported on this platform"); |
42 "Get loudspeaker status not supported on this platform"); | 38 return -1; |
43 return -1; | |
44 } | 39 } |
45 | 40 |
46 int32_t AudioDeviceGeneric::ResetAudioDevice() | 41 int32_t AudioDeviceGeneric::ResetAudioDevice() { |
47 { | 42 WEBRTC_TRACE(kTraceError, kTraceAudioDevice, -1, |
48 WEBRTC_TRACE(kTraceError, kTraceAudioDevice, -1, | 43 "Reset audio device not supported on this platform"); |
49 "Reset audio device not supported on this platform"); | 44 return -1; |
50 return -1; | |
51 } | 45 } |
52 | 46 |
53 int32_t AudioDeviceGeneric::SoundDeviceControl(unsigned int par1, | 47 int32_t AudioDeviceGeneric::SoundDeviceControl(unsigned int par1, |
54 unsigned int par2, unsigned int par3, unsigned int par4) | 48 unsigned int par2, |
55 { | 49 unsigned int par3, |
56 WEBRTC_TRACE(kTraceError, kTraceAudioDevice, -1, | 50 unsigned int par4) { |
57 "Sound device control not supported on this platform"); | 51 WEBRTC_TRACE(kTraceError, kTraceAudioDevice, -1, |
58 return -1; | 52 "Sound device control not supported on this platform"); |
53 return -1; | |
59 } | 54 } |
60 | 55 |
61 bool AudioDeviceGeneric::BuiltInAECIsAvailable() const { | 56 bool AudioDeviceGeneric::BuiltInAECIsAvailable() const { |
62 WEBRTC_TRACE(kTraceError, kTraceAudioDevice, -1, | 57 WEBRTC_TRACE(kTraceError, kTraceAudioDevice, -1, |
63 "Built-in AEC not supported on this platform"); | 58 "Built-in AEC not supported on this platform"); |
64 return false; | 59 return false; |
65 } | 60 } |
66 | 61 |
67 int32_t AudioDeviceGeneric::EnableBuiltInAEC(bool enable) | 62 int32_t AudioDeviceGeneric::EnableBuiltInAEC(bool enable) { |
68 { | 63 WEBRTC_TRACE(kTraceError, kTraceAudioDevice, -1, |
69 WEBRTC_TRACE(kTraceError, kTraceAudioDevice, -1, | 64 "Built-in AEC not supported on this platform"); |
70 "Built-in AEC not supported on this platform"); | 65 return -1; |
71 return -1; | |
72 } | 66 } |
73 | 67 |
74 bool AudioDeviceGeneric::BuiltInAECIsEnabled() const | 68 bool AudioDeviceGeneric::BuiltInAECIsEnabled() const { |
75 { | 69 WEBRTC_TRACE(kTraceError, kTraceAudioDevice, -1, |
76 WEBRTC_TRACE(kTraceError, kTraceAudioDevice, -1, | 70 "Windows AEC not supported on this platform"); |
77 "Windows AEC not supported on this platform"); | 71 return false; |
78 return false; | 72 } |
73 | |
74 int AudioDeviceGeneric::GetPlayoutAudioParameters( | |
75 AudioParameters* params) const { | |
76 return -1; | |
77 } | |
78 int AudioDeviceGeneric::GetRecordAudioParameters( | |
79 AudioParameters* params) const { | |
80 return -1; | |
79 } | 81 } |
80 | 82 |
81 } // namespace webrtc | 83 } // namespace webrtc |
OLD | NEW |