BUG=1662 R=henrikg@webrtc.org Review URL: https://webrtc-codereview.appspot.com/1434005 git-svn-id: http://webrtc.googlecode.com/svn/trunk@4079 4adac7df-926f-26a2-2b94-8c16560cd09d
29 lines
963 B
C++
29 lines
963 B
C++
/*
|
|
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
#include "webrtc/voice_engine/test/auto_test/resource_manager.h"
|
|
|
|
#include "webrtc/test/testsupport/fileutils.h"
|
|
|
|
ResourceManager::ResourceManager() {
|
|
std::string filename = "audio_long16.pcm";
|
|
#if defined(WEBRTC_ANDROID)
|
|
long_audio_file_path_ = "/sdcard/" + filename;
|
|
#else
|
|
std::string resource_path = webrtc::test::ProjectRootPath();
|
|
if (resource_path == webrtc::test::kCannotFindProjectRootDir) {
|
|
long_audio_file_path_ = "";
|
|
} else {
|
|
long_audio_file_path_ =
|
|
resource_path + "data/voice_engine/" + filename;
|
|
}
|
|
#endif
|
|
}
|