Bug 622517 - Only use remoted audio streams on Android. r=dougt a=dbaron

This commit is contained in:
Matthew Gregan 2011-01-10 12:47:43 +13:00
parent 06c770b22f
commit 71c4a6c4d2

View File

@ -62,6 +62,12 @@ extern "C" {
#define SA_PER_STREAM_VOLUME 1
#endif
// Android's audio backend is not available in content processes, so audio must
// be remoted to the parent chrome process.
#if defined(ANDROID) && defined(MOZ_IPC)
#define REMOTE_AUDIO 1
#endif
using mozilla::TimeStamp;
#ifdef PR_LOGGING
@ -312,7 +318,7 @@ nsAudioStream::GetThread()
nsAudioStream* nsAudioStream::AllocateStream()
{
#ifdef MOZ_IPC
#if defined(REMOTE_AUDIO)
if (XRE_GetProcessType() == GeckoProcessType_Content) {
return new nsAudioStreamRemote();
}