Tue, 06 Jan 2015 21:39:09 +0100
Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.
1 /* -*- mode: c++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* this source code form is subject to the terms of the mozilla public
3 * license, v. 2.0. if a copy of the mpl was not distributed with this file,
4 * You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef MOZILLA_AUDIONODEENGINENEON_H_
7 #define MOZILLA_AUDIONODEENGINENEON_H_
9 #include "AudioNodeEngine.h"
11 namespace mozilla {
12 void AudioBufferAddWithScale_NEON(const float* aInput,
13 float aScale,
14 float* aOutput,
15 uint32_t aSize);
17 void
18 AudioBlockCopyChannelWithScale_NEON(const float* aInput,
19 float aScale,
20 float* aOutput);
22 void
23 AudioBlockCopyChannelWithScale_NEON(const float aInput[WEBAUDIO_BLOCK_SIZE],
24 const float aScale[WEBAUDIO_BLOCK_SIZE],
25 float aOutput[WEBAUDIO_BLOCK_SIZE]);
27 void
28 AudioBufferInPlaceScale_NEON(float* aBlock,
29 float aScale,
30 uint32_t aSize);
32 void
33 AudioBlockPanStereoToStereo_NEON(const float aInputL[WEBAUDIO_BLOCK_SIZE],
34 const float aInputR[WEBAUDIO_BLOCK_SIZE],
35 float aGainL, float aGainR, bool aIsOnTheLeft,
36 float aOutputL[WEBAUDIO_BLOCK_SIZE],
37 float aOutputR[WEBAUDIO_BLOCK_SIZE]);
38 }
40 #endif /* MOZILLA_AUDIONODEENGINENEON_H_ */