Bug 819856, Re-enabled WebRTC voice engine code for Android, r=jesup

This commit is contained in:
Dan Mosedale 2012-12-21 14:03:33 -08:00
parent 6c1ae065e2
commit b74e965a62

View File

@ -386,7 +386,10 @@ namespace webrtc
// Always excluded for Android builds
#undef WEBRTC_CODEC_ISAC
#undef WEBRTC_VOE_EXTERNAL_REC_AND_PLAYOUT
// We need WEBRTC_VOE_EXTERNAL_REC_AND_PLAYOUT to make things work on Android.
// Motivation for the commented-out undef below is unclear.
//
// #undef WEBRTC_VOE_EXTERNAL_REC_AND_PLAYOUT
#undef WEBRTC_CONFERENCING
#undef WEBRTC_TYPING_DETECTION
@ -406,10 +409,10 @@ namespace webrtc
#define WEBRTC_VOICE_ENGINE_AGC_DEFAULT_MODE \
GainControl::kAdaptiveDigital
#define ANDROID_NOT_SUPPORTED(stat) \
stat.SetLastError(VE_FUNC_NOT_SUPPORTED, kTraceError, \
"API call not supported"); \
return -1;
// This macro used to cause the calling function to set an error code and return.
// However, not doing that seems to cause the unit tests to pass / behave reasonably,
// so it's disabled for now; see bug 819856.
#define ANDROID_NOT_SUPPORTED(stat)
#else // LINUX PC
// ----------------------------------------------------------------------------