166a358217004e1580453e46ce99041533e994985henrike@webrtc.org/* 266a358217004e1580453e46ce99041533e994985henrike@webrtc.org * Copyright 2004 The WebRTC Project Authors. All rights reserved. 366a358217004e1580453e46ce99041533e994985henrike@webrtc.org * 466a358217004e1580453e46ce99041533e994985henrike@webrtc.org * Use of this source code is governed by a BSD-style license 566a358217004e1580453e46ce99041533e994985henrike@webrtc.org * that can be found in the LICENSE file in the root of the source 666a358217004e1580453e46ce99041533e994985henrike@webrtc.org * tree. An additional intellectual property rights grant can be found 766a358217004e1580453e46ce99041533e994985henrike@webrtc.org * in the file PATENTS. All contributing project authors may 866a358217004e1580453e46ce99041533e994985henrike@webrtc.org * be found in the AUTHORS file in the root of the source tree. 966a358217004e1580453e46ce99041533e994985henrike@webrtc.org */ 1066a358217004e1580453e46ce99041533e994985henrike@webrtc.org 1166a358217004e1580453e46ce99041533e994985henrike@webrtc.org#include "webrtc/sound/platformsoundsystem.h" 1266a358217004e1580453e46ce99041533e994985henrike@webrtc.org 1366a358217004e1580453e46ce99041533e994985henrike@webrtc.org#include "webrtc/base/common.h" 1466a358217004e1580453e46ce99041533e994985henrike@webrtc.org#if defined(WEBRTC_LINUX) && !defined(WEBRTC_ANDROID) 1566a358217004e1580453e46ce99041533e994985henrike@webrtc.org#include "webrtc/sound/linuxsoundsystem.h" 1666a358217004e1580453e46ce99041533e994985henrike@webrtc.org#else 1766a358217004e1580453e46ce99041533e994985henrike@webrtc.org#include "webrtc/sound/nullsoundsystem.h" 1866a358217004e1580453e46ce99041533e994985henrike@webrtc.org#endif 1966a358217004e1580453e46ce99041533e994985henrike@webrtc.org 2066a358217004e1580453e46ce99041533e994985henrike@webrtc.orgnamespace rtc { 2166a358217004e1580453e46ce99041533e994985henrike@webrtc.org 2266a358217004e1580453e46ce99041533e994985henrike@webrtc.orgSoundSystemInterface *CreatePlatformSoundSystem() { 2366a358217004e1580453e46ce99041533e994985henrike@webrtc.org#if defined(WEBRTC_LINUX) && !defined(WEBRTC_ANDROID) 2466a358217004e1580453e46ce99041533e994985henrike@webrtc.org return new LinuxSoundSystem(); 2566a358217004e1580453e46ce99041533e994985henrike@webrtc.org#else 2666a358217004e1580453e46ce99041533e994985henrike@webrtc.org ASSERT(false && "Not implemented"); 2766a358217004e1580453e46ce99041533e994985henrike@webrtc.org return new NullSoundSystem(); 2866a358217004e1580453e46ce99041533e994985henrike@webrtc.org#endif 2966a358217004e1580453e46ce99041533e994985henrike@webrtc.org} 3066a358217004e1580453e46ce99041533e994985henrike@webrtc.org 3166a358217004e1580453e46ce99041533e994985henrike@webrtc.org} // namespace rtc 32