blob: 27ea6040959e455e9baed57ce863b5f44c125cac [file] [log] [blame]
niklase@google.com470e71d2011-07-07 08:21:25 +00001/*
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11#include "audio_device_generic.h"
12#include "trace.h"
13
14namespace webrtc {
15
pbos@webrtc.org25509882013-04-09 10:30:35 +000016int32_t AudioDeviceGeneric::SetRecordingSampleRate(
17 const uint32_t samplesPerSec)
niklase@google.com470e71d2011-07-07 08:21:25 +000018{
19 WEBRTC_TRACE(kTraceError, kTraceAudioDevice, -1,
20 "Set recording sample rate not supported on this platform");
21 return -1;
22}
23
pbos@webrtc.org25509882013-04-09 10:30:35 +000024int32_t AudioDeviceGeneric::SetPlayoutSampleRate(
25 const uint32_t samplesPerSec)
niklase@google.com470e71d2011-07-07 08:21:25 +000026{
27 WEBRTC_TRACE(kTraceError, kTraceAudioDevice, -1,
28 "Set playout sample rate not supported on this platform");
29 return -1;
30}
pbos@webrtc.org25509882013-04-09 10:30:35 +000031
32int32_t AudioDeviceGeneric::SetLoudspeakerStatus(bool enable)
niklase@google.com470e71d2011-07-07 08:21:25 +000033{
34 WEBRTC_TRACE(kTraceError, kTraceAudioDevice, -1,
35 "Set loudspeaker status not supported on this platform");
36 return -1;
37}
38
pbos@webrtc.org25509882013-04-09 10:30:35 +000039int32_t AudioDeviceGeneric::GetLoudspeakerStatus(bool& enable) const
niklase@google.com470e71d2011-07-07 08:21:25 +000040{
41 WEBRTC_TRACE(kTraceError, kTraceAudioDevice, -1,
42 "Get loudspeaker status not supported on this platform");
43 return -1;
44}
45
pbos@webrtc.org25509882013-04-09 10:30:35 +000046int32_t AudioDeviceGeneric::ResetAudioDevice()
niklase@google.com470e71d2011-07-07 08:21:25 +000047{
48 WEBRTC_TRACE(kTraceError, kTraceAudioDevice, -1,
49 "Reset audio device not supported on this platform");
50 return -1;
51}
52
pbos@webrtc.org25509882013-04-09 10:30:35 +000053int32_t AudioDeviceGeneric::SoundDeviceControl(unsigned int par1,
niklase@google.com470e71d2011-07-07 08:21:25 +000054 unsigned int par2, unsigned int par3, unsigned int par4)
55{
56 WEBRTC_TRACE(kTraceError, kTraceAudioDevice, -1,
andrew@webrtc.orga3c6d612011-09-13 17:17:49 +000057 "Sound device control not supported on this platform");
niklase@google.com470e71d2011-07-07 08:21:25 +000058 return -1;
59}
60
andrew@webrtc.orga3c6d612011-09-13 17:17:49 +000061int32_t AudioDeviceGeneric::EnableBuiltInAEC(bool enable)
62{
63 WEBRTC_TRACE(kTraceError, kTraceAudioDevice, -1,
64 "Windows AEC not supported on this platform");
65 return -1;
66}
67
68bool AudioDeviceGeneric::BuiltInAECIsEnabled() const
69{
70 WEBRTC_TRACE(kTraceError, kTraceAudioDevice, -1,
71 "Windows AEC not supported on this platform");
72 return false;
73}
74
niklase@google.com470e71d2011-07-07 08:21:25 +000075} // namespace webrtc
76