Bug 848954 - Part 32 - Disable MSG sleep. r=padenot

This has a race somewhere, so we disable it for now.

The real fix will come from the Web Audio API Suspend API [0]

[0]: https://github.com/WebAudio/web-audio-api/issues/317
This commit is contained in:
Randell Jesup 2014-08-26 17:12:41 +02:00
parent ba39d0e7ab
commit 5d75646bd9
2 changed files with 3 additions and 1 deletions

View File

@ -630,6 +630,7 @@ AudioCallbackDriver::GetCurrentTime()
void AudioCallbackDriver::WaitForNextIteration()
{
#if 0
mGraphImpl->GetMonitor().AssertCurrentThreadOwns();
// We can't block on the monitor in the audio callback, so we kick off a new
@ -642,6 +643,7 @@ void AudioCallbackDriver::WaitForNextIteration()
new AsyncCubebTask(this, AsyncCubebTask::SLEEP);
sleepEvent->Dispatch();
}
#endif
}
void

View File

@ -1450,7 +1450,7 @@ public:
NS_ASSERTION(mGraph->mDetectedNotRunning,
"We should know the graph thread control loop isn't running!");
STREAM_LOG(PR_LOG_DEBUG, ("Shutting down graph %p", mGraph));
STREAM_LOG(PR_LOG_DEBUG, ("Shutting down graph %p", mGraph.get()));
if (mGraph->CurrentDriver()->AsAudioCallbackDriver()) {
MOZ_ASSERT(!mGraph->CurrentDriver()->AsAudioCallbackDriver()->InCallback());