blob: f1ee5a9a3516723690c3d7071bfed06adc8a8441 [file] [log] [blame]
henrike@webrtc.org66a35822014-08-26 22:04:04 +00001/*
2 * Copyright 2004 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 "webrtc/sound/soundsysteminterface.h"
12
13#include "webrtc/sound/sounddevicelocator.h"
14
15namespace rtc {
16
17void SoundSystemInterface::ClearSoundDeviceLocatorList(
18 SoundSystemInterface::SoundDeviceLocatorList *devices) {
19 for (SoundDeviceLocatorList::iterator i = devices->begin();
20 i != devices->end();
21 ++i) {
22 if (*i) {
23 delete *i;
24 }
25 }
26 devices->clear();
27}
28
29} // namespace rtc