react-native-audio-api 0.6.4-nightly-ff577c8-20250704 → 0.6.4-nightly-6fc62be-20250704
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/src/main/cpp/audioapi/android/core/AudioDecoder.cpp +33 -44
- package/common/cpp/audioapi/HostObjects/BaseAudioContextHostObject.h +3 -4
- package/common/cpp/audioapi/core/AudioParam.cpp +4 -5
- package/common/cpp/audioapi/core/BaseAudioContext.cpp +2 -3
- package/common/cpp/audioapi/core/BaseAudioContext.h +1 -1
- package/common/cpp/audioapi/core/utils/AudioDecoder.h +1 -38
- package/ios/audioapi/ios/AudioAPIModule.mm +8 -11
- package/ios/audioapi/ios/core/AudioDecoder.mm +31 -37
- package/lib/commonjs/core/BaseAudioContext.js +6 -7
- package/lib/commonjs/core/BaseAudioContext.js.map +1 -1
- package/lib/module/core/BaseAudioContext.js +6 -7
- package/lib/module/core/BaseAudioContext.js.map +1 -1
- package/lib/typescript/core/BaseAudioContext.d.ts +1 -4
- package/lib/typescript/core/BaseAudioContext.d.ts.map +1 -1
- package/lib/typescript/interfaces.d.ts +1 -1
- package/lib/typescript/interfaces.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/core/BaseAudioContext.ts +9 -12
- package/src/interfaces.ts +1 -4
- package/common/cpp/audioapi/libs/audio-stretch/stretch.c +0 -610
- package/common/cpp/audioapi/libs/audio-stretch/stretch.h +0 -49
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
////////////////////////////////////////////////////////////////////////////
|
|
2
|
-
// **** AUDIO-STRETCH **** //
|
|
3
|
-
// Time Domain Harmonic Scaler //
|
|
4
|
-
// Copyright (c) 2022 David Bryant //
|
|
5
|
-
// All Rights Reserved. //
|
|
6
|
-
// Distributed under the BSD Software License (see license.txt) //
|
|
7
|
-
////////////////////////////////////////////////////////////////////////////
|
|
8
|
-
|
|
9
|
-
// stretch.h
|
|
10
|
-
|
|
11
|
-
// Time Domain Harmonic Compression and Expansion
|
|
12
|
-
//
|
|
13
|
-
// This library performs time domain harmonic scaling with pitch detection
|
|
14
|
-
// to stretch the timing of a 16-bit PCM signal (either mono or stereo) from
|
|
15
|
-
// 1/2 to 2 times its original length. This is done without altering any of
|
|
16
|
-
// its tonal characteristics.
|
|
17
|
-
//
|
|
18
|
-
// Use stereo (num_chans = 2), when both channels are from same source
|
|
19
|
-
// and should contain approximately similar content.
|
|
20
|
-
// For independent channels, prefer using multiple StretchHandle-instances.
|
|
21
|
-
// see https://github.com/dbry/audio-stretch/issues/6
|
|
22
|
-
|
|
23
|
-
#ifndef STRETCH_H
|
|
24
|
-
#define STRETCH_H
|
|
25
|
-
|
|
26
|
-
#include <stdint.h>
|
|
27
|
-
|
|
28
|
-
#define STRETCH_FAST_FLAG 0x1 // use "fast" version of period determination code
|
|
29
|
-
#define STRETCH_DUAL_FLAG 0x2 // cascade two instances (doubles usable ratio range)
|
|
30
|
-
|
|
31
|
-
#ifdef __cplusplus
|
|
32
|
-
extern "C" {
|
|
33
|
-
#endif
|
|
34
|
-
|
|
35
|
-
typedef void *StretchHandle;
|
|
36
|
-
|
|
37
|
-
StretchHandle stretch_init (int shortest_period, int longest_period, int num_chans, int flags);
|
|
38
|
-
int stretch_output_capacity (StretchHandle handle, int max_num_samples, float max_ratio);
|
|
39
|
-
int stretch_samples (StretchHandle handle, const int16_t *samples, int num_samples, int16_t *output, float ratio);
|
|
40
|
-
int stretch_flush (StretchHandle handle, int16_t *output);
|
|
41
|
-
void stretch_reset (StretchHandle handle);
|
|
42
|
-
void stretch_deinit (StretchHandle handle);
|
|
43
|
-
|
|
44
|
-
#ifdef __cplusplus
|
|
45
|
-
}
|
|
46
|
-
#endif
|
|
47
|
-
|
|
48
|
-
#endif
|
|
49
|
-
|