OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 59 |
60 // Special values for the "latency" field of OpenParams. | 60 // Special values for the "latency" field of OpenParams. |
61 // Use this one to say you don't care what the latency is. The sound system | 61 // Use this one to say you don't care what the latency is. The sound system |
62 // will optimize for other things instead. | 62 // will optimize for other things instead. |
63 static const int kNoLatencyRequirements = -1; | 63 static const int kNoLatencyRequirements = -1; |
64 // Use this one to say that you want the sound system to pick an appropriate | 64 // Use this one to say that you want the sound system to pick an appropriate |
65 // small latency value. The sound system may pick the minimum allowed one, or | 65 // small latency value. The sound system may pick the minimum allowed one, or |
66 // a slightly higher one in the event that the true minimum requires an | 66 // a slightly higher one in the event that the true minimum requires an |
67 // undesirable trade-off. | 67 // undesirable trade-off. |
68 static const int kLowLatency = 0; | 68 static const int kLowLatency = 0; |
69 | 69 |
70 // Max value for the volume parameters for Sound(Input|Output)StreamInterface. | 70 // Max value for the volume parameters for Sound(Input|Output)StreamInterface. |
71 static const int kMaxVolume = 255; | 71 static const int kMaxVolume = 255; |
72 // Min value for the volume parameters for Sound(Input|Output)StreamInterface. | 72 // Min value for the volume parameters for Sound(Input|Output)StreamInterface. |
73 static const int kMinVolume = 0; | 73 static const int kMinVolume = 0; |
74 | 74 |
75 // Helper for clearing a locator list and deleting the entries. | 75 // Helper for clearing a locator list and deleting the entries. |
76 static void ClearSoundDeviceLocatorList(SoundDeviceLocatorList *devices); | 76 static void ClearSoundDeviceLocatorList(SoundDeviceLocatorList *devices); |
77 | 77 |
78 virtual ~SoundSystemInterface() {} | 78 virtual ~SoundSystemInterface() {} |
79 | 79 |
(...skipping 17 matching lines...) Expand all Loading... |
97 const SoundDeviceLocator *device, | 97 const SoundDeviceLocator *device, |
98 const OpenParams ¶ms) = 0; | 98 const OpenParams ¶ms) = 0; |
99 | 99 |
100 // A human-readable name for this sound system. | 100 // A human-readable name for this sound system. |
101 virtual const char *GetName() const = 0; | 101 virtual const char *GetName() const = 0; |
102 | 102 |
103 protected: | 103 protected: |
104 SoundSystemInterface() {} | 104 SoundSystemInterface() {} |
105 | 105 |
106 private: | 106 private: |
107 DISALLOW_COPY_AND_ASSIGN(SoundSystemInterface); | 107 RTC_DISALLOW_COPY_AND_ASSIGN(SoundSystemInterface); |
108 }; | 108 }; |
109 | 109 |
110 } // namespace rtc | 110 } // namespace rtc |
111 | 111 |
112 #endif // WEBRTC_SOUND_SOUNDSYSTEMINTERFACE_H_ | 112 #endif // WEBRTC_SOUND_SOUNDSYSTEMINTERFACE_H_ |
OLD | NEW |