react-native-audio-api 0.8.3-nightly-56904d1-20250915 → 0.8.3-nightly-436562d-20250917
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.
|
@@ -18,11 +18,10 @@ AudioParam::AudioParam(
|
|
|
18
18
|
maxValue_(maxValue),
|
|
19
19
|
eventsQueue_(),
|
|
20
20
|
eventScheduler_(32),
|
|
21
|
-
audioBus_(
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
context->getSampleRate())) {
|
|
21
|
+
audioBus_(std::make_shared<AudioBus>(
|
|
22
|
+
RENDER_QUANTUM_SIZE,
|
|
23
|
+
1,
|
|
24
|
+
context->getSampleRate())) {
|
|
26
25
|
inputBuses_.reserve(4);
|
|
27
26
|
inputNodes_.reserve(4);
|
|
28
27
|
startTime_ = 0;
|
|
@@ -85,9 +85,8 @@ RCT_EXPORT_BLOCKING_SYNCHRONOUS_METHOD(getDevicePreferredSampleRate)
|
|
|
85
85
|
return [self.audioSessionManager getDevicePreferredSampleRate];
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
RCT_EXPORT_METHOD(
|
|
89
|
-
|
|
90
|
-
reject)
|
|
88
|
+
RCT_EXPORT_METHOD(setAudioSessionActivity : (BOOL)enabled resolve : (RCTPromiseResolveBlock)
|
|
89
|
+
resolve reject : (RCTPromiseRejectBlock)reject)
|
|
91
90
|
{
|
|
92
91
|
if ([self.audioSessionManager setActive:enabled]) {
|
|
93
92
|
resolve(@"true");
|
|
@@ -97,9 +96,8 @@ RCT_EXPORT_METHOD(
|
|
|
97
96
|
resolve(@"false");
|
|
98
97
|
}
|
|
99
98
|
|
|
100
|
-
RCT_EXPORT_METHOD(
|
|
101
|
-
|
|
102
|
-
options allowHaptics : (BOOL)allowHaptics)
|
|
99
|
+
RCT_EXPORT_METHOD(setAudioSessionOptions : (NSString *)category mode : (NSString *)mode options : (NSArray *)
|
|
100
|
+
options allowHaptics : (BOOL)allowHaptics)
|
|
103
101
|
{
|
|
104
102
|
[self.audioSessionManager setAudioSessionOptions:category mode:mode options:options allowHaptics:allowHaptics];
|
|
105
103
|
}
|
|
@@ -134,21 +132,20 @@ RCT_EXPORT_METHOD(observeVolumeChanges : (BOOL)enabled)
|
|
|
134
132
|
[self.notificationManager observeVolumeChanges:(BOOL)enabled];
|
|
135
133
|
}
|
|
136
134
|
|
|
137
|
-
RCT_EXPORT_METHOD(
|
|
138
|
-
|
|
139
|
-
reject)
|
|
135
|
+
RCT_EXPORT_METHOD(requestRecordingPermissions : (nonnull RCTPromiseResolveBlock)
|
|
136
|
+
resolve reject : (nonnull RCTPromiseRejectBlock)reject)
|
|
140
137
|
{
|
|
141
138
|
[self.audioSessionManager requestRecordingPermissions:resolve reject:reject];
|
|
142
139
|
}
|
|
143
140
|
|
|
144
|
-
RCT_EXPORT_METHOD(
|
|
145
|
-
|
|
141
|
+
RCT_EXPORT_METHOD(checkRecordingPermissions : (nonnull RCTPromiseResolveBlock)
|
|
142
|
+
resolve reject : (nonnull RCTPromiseRejectBlock)reject)
|
|
146
143
|
{
|
|
147
144
|
[self.audioSessionManager checkRecordingPermissions:resolve reject:reject];
|
|
148
145
|
}
|
|
149
146
|
|
|
150
|
-
RCT_EXPORT_METHOD(
|
|
151
|
-
|
|
147
|
+
RCT_EXPORT_METHOD(getDevicesInfo : (nonnull RCTPromiseResolveBlock)resolve reject : (nonnull RCTPromiseRejectBlock)
|
|
148
|
+
reject)
|
|
152
149
|
{
|
|
153
150
|
[self.audioSessionManager getDevicesInfo:resolve reject:reject];
|
|
154
151
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-audio-api",
|
|
3
|
-
"version": "0.8.3-nightly-
|
|
3
|
+
"version": "0.8.3-nightly-436562d-20250917",
|
|
4
4
|
"description": "react-native-audio-api provides system for controlling audio in React Native environment compatible with Web Audio API specification",
|
|
5
5
|
"bin": {
|
|
6
6
|
"setup-rn-audio-api-web": "./scripts/setup-rn-audio-api-web.js"
|