Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Area51Kacz:branches:home:ungoogled_chromium:testing
firefox-hardened
moo.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File moo.patch of Package firefox-hardened
--- a/dom/media/webaudio/AudioContext.h 2022-08-30 18:25:01.000000000 -0300 +++ b/dom/media/webaudio/AudioContext.h.new 2022-12-05 18:30:56.268418094 -0300 @@ -249,7 +249,7 @@ already_AddRefed<StereoPannerNode> CreateStereoPanner(ErrorResult& aRv); - already_AddRefed<AnalyserNode> CreateAnalyser(ErrorResult& aRv); + //already_AddRefed<AnalyserNode> CreateAnalyser(ErrorResult& aRv); already_AddRefed<GainNode> CreateGain(ErrorResult& aRv); --- a/dom/media/webaudio/AudioContext.cpp 2022-08-30 18:25:01.000000000 -0300 +++ b/dom/media/webaudio/AudioContext.cpp.new 2022-12-05 18:30:35.548417610 -0300 @@ -429,7 +429,7 @@ } already_AddRefed<AnalyserNode> AudioContext::CreateAnalyser(ErrorResult& aRv) { - return AnalyserNode::Create(*this, AnalyserOptions(), aRv); + //return AnalyserNode::Create(*this, AnalyserOptions(), aRv); } already_AddRefed<StereoPannerNode> AudioContext::CreateStereoPanner( --- a/dom/media/webaudio/AnalyserNode.h 2022-08-30 18:25:02.000000000 -0300 +++ b/dom/media/webaudio/AnalyserNode.h.new 2022-12-05 18:28:08.885080864 -0300 @@ -33,10 +33,10 @@ return Create(aAudioContext, aOptions, aRv); } - void GetFloatFrequencyData(const Float32Array& aArray); - void GetByteFrequencyData(const Uint8Array& aArray); - void GetFloatTimeDomainData(const Float32Array& aArray); - void GetByteTimeDomainData(const Uint8Array& aArray); + //void GetFloatFrequencyData(const Float32Array& aArray); + //void GetByteFrequencyData(const Uint8Array& aArray); + //void GetFloatTimeDomainData(const Float32Array& aArray); + //void GetByteTimeDomainData(const Uint8Array& aArray); uint32_t FftSize() const { return mAnalysisBlock.FFTSize(); } void SetFftSize(uint32_t aValue, ErrorResult& aRv); uint32_t FrequencyBinCount() const { return FftSize() / 2; } --- a/dom/media/webaudio/AnalyserNode.cpp 2022-08-30 18:25:07.000000000 -0300 +++ b/dom/media/webaudio/AnalyserNode.cpp.new 2022-12-05 18:29:54.798416662 -0300 @@ -249,12 +249,12 @@ } void AnalyserNode::GetFloatTimeDomainData(const Float32Array& aArray) { - aArray.ComputeState(); + //aArray.ComputeState(); - float* buffer = aArray.Data(); - size_t length = std::min(aArray.Length(), FftSize()); + //float* buffer = aArray.Data(); + //size_t length = std::min(aArray.Length(), FftSize()); - GetTimeDomainData(buffer, length); +// GetTimeDomainData(buffer, length); } void AnalyserNode::GetByteTimeDomainData(const Uint8Array& aArray) { @@ -264,7 +264,7 @@ AlignedTArray<float> tmpBuffer; if (!tmpBuffer.SetLength(length, fallible)) { - return; + //return; } GetTimeDomainData(tmpBuffer.Elements(), length); @@ -306,18 +306,18 @@ return true; } -void AnalyserNode::ApplyBlackmanWindow(float* aBuffer, uint32_t aSize) { - double alpha = 0.16; - double a0 = 0.5 * (1.0 - alpha); - double a1 = 0.5; - double a2 = 0.5 * alpha; - - for (uint32_t i = 0; i < aSize; ++i) { - double x = double(i) / aSize; - double window = a0 - a1 * cos(2 * M_PI * x) + a2 * cos(4 * M_PI * x); - aBuffer[i] *= window; - } -} +//void AnalyserNode::ApplyBlackmanWindow(float* aBuffer, uint32_t aSize) { + //double alpha = 0.16; + //double a0 = 0.5 * (1.0 - alpha); + //double a1 = 0.5; + //double a2 = 0.5 * alpha; + + //for (uint32_t i = 0; i < aSize; ++i) { + //double x = double(i) / aSize; + //double window = a0 - a1 * cos(2 * M_PI * x) + a2 * cos(4 * M_PI * x); + //aBuffer[i] *= window; + //} +//} bool AnalyserNode::AllocateBuffer() { bool result = true;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor