|
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/. */ |
|
5 |
|
6 #ifndef MOZILLA_AUDIONODEENGINENEON_H_ |
|
7 #define MOZILLA_AUDIONODEENGINENEON_H_ |
|
8 |
|
9 #include "AudioNodeEngine.h" |
|
10 |
|
11 namespace mozilla { |
|
12 void AudioBufferAddWithScale_NEON(const float* aInput, |
|
13 float aScale, |
|
14 float* aOutput, |
|
15 uint32_t aSize); |
|
16 |
|
17 void |
|
18 AudioBlockCopyChannelWithScale_NEON(const float* aInput, |
|
19 float aScale, |
|
20 float* aOutput); |
|
21 |
|
22 void |
|
23 AudioBlockCopyChannelWithScale_NEON(const float aInput[WEBAUDIO_BLOCK_SIZE], |
|
24 const float aScale[WEBAUDIO_BLOCK_SIZE], |
|
25 float aOutput[WEBAUDIO_BLOCK_SIZE]); |
|
26 |
|
27 void |
|
28 AudioBufferInPlaceScale_NEON(float* aBlock, |
|
29 float aScale, |
|
30 uint32_t aSize); |
|
31 |
|
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 } |
|
39 |
|
40 #endif /* MOZILLA_AUDIONODEENGINENEON_H_ */ |