зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1634295 - Flush denormals to zero in hardware in the AudioStream audio callback. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D74613
This commit is contained in:
Родитель
ede21ac58b
Коммит
7c4ce5aaba
|
@ -24,6 +24,7 @@
|
|||
# include "nsXULAppAPI.h"
|
||||
#endif
|
||||
#include "Tracing.h"
|
||||
#include "webaudio/blink/DenormalDisabler.h"
|
||||
|
||||
// Use abort() instead of exception in SoundTouch.
|
||||
#define ST_NO_EXCEPTION_HANDLING 1
|
||||
|
@ -579,6 +580,8 @@ void AudioStream::GetTimeStretched(AudioBufferWriter& aWriter) {
|
|||
}
|
||||
|
||||
long AudioStream::DataCallback(void* aBuffer, long aFrames) {
|
||||
WebCore::DenormalDisabler disabler;
|
||||
|
||||
TRACE_AUDIO_CALLBACK_BUDGET(aFrames, mAudioClock.GetInputRate());
|
||||
TRACE();
|
||||
MonitorAutoLock mon(mMonitor);
|
||||
|
|
Загрузка…
Ссылка в новой задаче