react-native-audio-api 0.11.0-nightly-b30bac9-20260114 → 0.11.0

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.
Files changed (173) hide show
  1. package/android/src/main/cpp/audioapi/android/core/AndroidAudioRecorder.cpp +3 -10
  2. package/android/src/main/cpp/audioapi/android/core/AudioPlayer.cpp +0 -4
  3. package/android/src/main/java/com/swmansion/audioapi/AudioAPIModule.kt +4 -83
  4. package/android/src/main/java/com/swmansion/audioapi/system/CentralizedForegroundService.kt +14 -29
  5. package/android/src/main/java/com/swmansion/audioapi/system/ForegroundServiceManager.kt +10 -9
  6. package/android/src/main/java/com/swmansion/audioapi/system/MediaSessionManager.kt +10 -51
  7. package/android/src/main/java/com/swmansion/audioapi/system/notification/BaseNotification.kt +6 -14
  8. package/android/src/main/java/com/swmansion/audioapi/system/notification/NotificationRegistry.kt +79 -60
  9. package/android/src/main/java/com/swmansion/audioapi/system/notification/PlaybackNotification.kt +249 -411
  10. package/android/src/main/java/com/swmansion/audioapi/system/notification/PlaybackNotificationReceiver.kt +8 -3
  11. package/android/src/main/java/com/swmansion/audioapi/system/notification/RecordingNotification.kt +240 -222
  12. package/android/src/main/java/com/swmansion/audioapi/system/notification/RecordingNotificationReceiver.kt +11 -22
  13. package/android/src/main/java/com/swmansion/audioapi/system/notification/state/RecordingNotificationState.kt +24 -0
  14. package/android/src/main/res/layout/btn_round_ripple.xml +9 -0
  15. package/android/src/main/res/layout/notification_collapsed.xml +45 -0
  16. package/android/src/main/res/layout/notification_expanded.xml +44 -0
  17. package/android/src/oldarch/NativeAudioAPIModuleSpec.java +1 -13
  18. package/common/cpp/audioapi/core/utils/AudioFileWriter.cpp +1 -1
  19. package/ios/audioapi/ios/AudioAPIModule.mm +5 -48
  20. package/ios/audioapi/ios/system/notification/BaseNotification.h +0 -7
  21. package/ios/audioapi/ios/system/notification/NotificationRegistry.h +5 -25
  22. package/ios/audioapi/ios/system/notification/NotificationRegistry.mm +19 -64
  23. package/ios/audioapi/ios/system/notification/PlaybackNotification.mm +4 -15
  24. package/lib/commonjs/AudioAPIModule/AudioAPIModule.js +2 -1
  25. package/lib/commonjs/AudioAPIModule/AudioAPIModule.js.map +1 -1
  26. package/lib/commonjs/api.js +1 -29
  27. package/lib/commonjs/api.js.map +1 -1
  28. package/lib/commonjs/core/AudioDecoder.js +42 -16
  29. package/lib/commonjs/core/AudioDecoder.js.map +1 -1
  30. package/lib/commonjs/core/AudioRecorder.js +2 -1
  31. package/lib/commonjs/core/AudioRecorder.js.map +1 -1
  32. package/lib/commonjs/core/AudioStretcher.js +2 -1
  33. package/lib/commonjs/core/AudioStretcher.js.map +1 -1
  34. package/lib/commonjs/core/BaseAudioContext.js +2 -5
  35. package/lib/commonjs/core/BaseAudioContext.js.map +1 -1
  36. package/lib/commonjs/errors/AudioApiError.js +14 -0
  37. package/lib/commonjs/errors/AudioApiError.js.map +1 -0
  38. package/lib/commonjs/errors/index.js +7 -0
  39. package/lib/commonjs/errors/index.js.map +1 -1
  40. package/lib/commonjs/specs/NativeAudioAPIModule.js.map +1 -1
  41. package/lib/commonjs/specs/NativeAudioAPIModule.web.js +0 -9
  42. package/lib/commonjs/specs/NativeAudioAPIModule.web.js.map +1 -1
  43. package/lib/commonjs/system/notification/PlaybackNotificationManager.js +40 -85
  44. package/lib/commonjs/system/notification/PlaybackNotificationManager.js.map +1 -1
  45. package/lib/commonjs/system/notification/RecordingNotificationManager.ios.js +51 -0
  46. package/lib/commonjs/system/notification/RecordingNotificationManager.ios.js.map +1 -0
  47. package/lib/commonjs/system/notification/RecordingNotificationManager.js +30 -144
  48. package/lib/commonjs/system/notification/RecordingNotificationManager.js.map +1 -1
  49. package/lib/commonjs/system/notification/index.js +1 -9
  50. package/lib/commonjs/system/notification/index.js.map +1 -1
  51. package/lib/commonjs/utils/index.js +3 -2
  52. package/lib/commonjs/utils/index.js.map +1 -1
  53. package/lib/commonjs/utils/paths.js +18 -0
  54. package/lib/commonjs/utils/paths.js.map +1 -0
  55. package/lib/commonjs/web-core/AudioContext.js +20 -11
  56. package/lib/commonjs/web-core/AudioContext.js.map +1 -1
  57. package/lib/commonjs/web-system/notification/PlaybackNotificationManager.js +0 -1
  58. package/lib/commonjs/web-system/notification/PlaybackNotificationManager.js.map +1 -1
  59. package/lib/commonjs/web-system/notification/RecordingNotificationManager.js +1 -6
  60. package/lib/commonjs/web-system/notification/RecordingNotificationManager.js.map +1 -1
  61. package/lib/module/AudioAPIModule/AudioAPIModule.js +2 -1
  62. package/lib/module/AudioAPIModule/AudioAPIModule.js.map +1 -1
  63. package/lib/module/api.js +3 -2
  64. package/lib/module/api.js.map +1 -1
  65. package/lib/module/core/AudioDecoder.js +42 -16
  66. package/lib/module/core/AudioDecoder.js.map +1 -1
  67. package/lib/module/core/AudioRecorder.js +3 -1
  68. package/lib/module/core/AudioRecorder.js.map +1 -1
  69. package/lib/module/core/AudioStretcher.js +2 -1
  70. package/lib/module/core/AudioStretcher.js.map +1 -1
  71. package/lib/module/core/BaseAudioContext.js +2 -5
  72. package/lib/module/core/BaseAudioContext.js.map +1 -1
  73. package/lib/module/errors/AudioApiError.js +10 -0
  74. package/lib/module/errors/AudioApiError.js.map +1 -0
  75. package/lib/module/errors/index.js +1 -0
  76. package/lib/module/errors/index.js.map +1 -1
  77. package/lib/module/specs/NativeAudioAPIModule.js.map +1 -1
  78. package/lib/module/specs/NativeAudioAPIModule.web.js +0 -9
  79. package/lib/module/specs/NativeAudioAPIModule.web.js.map +1 -1
  80. package/lib/module/system/notification/PlaybackNotificationManager.js +40 -85
  81. package/lib/module/system/notification/PlaybackNotificationManager.js.map +1 -1
  82. package/lib/module/system/notification/RecordingNotificationManager.ios.js +47 -0
  83. package/lib/module/system/notification/RecordingNotificationManager.ios.js.map +1 -0
  84. package/lib/module/system/notification/RecordingNotificationManager.js +30 -144
  85. package/lib/module/system/notification/RecordingNotificationManager.js.map +1 -1
  86. package/lib/module/system/notification/index.js +1 -2
  87. package/lib/module/system/notification/index.js.map +1 -1
  88. package/lib/module/utils/index.js +3 -2
  89. package/lib/module/utils/index.js.map +1 -1
  90. package/lib/module/utils/paths.js +12 -0
  91. package/lib/module/utils/paths.js.map +1 -0
  92. package/lib/module/web-core/AudioContext.js +20 -11
  93. package/lib/module/web-core/AudioContext.js.map +1 -1
  94. package/lib/module/web-system/notification/PlaybackNotificationManager.js +0 -1
  95. package/lib/module/web-system/notification/PlaybackNotificationManager.js.map +1 -1
  96. package/lib/module/web-system/notification/RecordingNotificationManager.js +1 -6
  97. package/lib/module/web-system/notification/RecordingNotificationManager.js.map +1 -1
  98. package/lib/typescript/AudioAPIModule/AudioAPIModule.d.ts.map +1 -1
  99. package/lib/typescript/api.d.ts +3 -2
  100. package/lib/typescript/api.d.ts.map +1 -1
  101. package/lib/typescript/core/AudioDecoder.d.ts +2 -1
  102. package/lib/typescript/core/AudioDecoder.d.ts.map +1 -1
  103. package/lib/typescript/core/AudioRecorder.d.ts.map +1 -1
  104. package/lib/typescript/core/AudioStretcher.d.ts.map +1 -1
  105. package/lib/typescript/core/BaseAudioContext.d.ts +2 -2
  106. package/lib/typescript/core/BaseAudioContext.d.ts.map +1 -1
  107. package/lib/typescript/errors/AudioApiError.d.ts +5 -0
  108. package/lib/typescript/errors/AudioApiError.d.ts.map +1 -0
  109. package/lib/typescript/errors/index.d.ts +1 -0
  110. package/lib/typescript/errors/index.d.ts.map +1 -1
  111. package/lib/typescript/interfaces.d.ts +1 -1
  112. package/lib/typescript/interfaces.d.ts.map +1 -1
  113. package/lib/typescript/specs/NativeAudioAPIModule.d.ts +2 -5
  114. package/lib/typescript/specs/NativeAudioAPIModule.d.ts.map +1 -1
  115. package/lib/typescript/specs/NativeAudioAPIModule.web.d.ts +1 -4
  116. package/lib/typescript/specs/NativeAudioAPIModule.web.d.ts.map +1 -1
  117. package/lib/typescript/system/notification/PlaybackNotificationManager.d.ts +32 -9
  118. package/lib/typescript/system/notification/PlaybackNotificationManager.d.ts.map +1 -1
  119. package/lib/typescript/system/notification/RecordingNotificationManager.d.ts +26 -13
  120. package/lib/typescript/system/notification/RecordingNotificationManager.d.ts.map +1 -1
  121. package/lib/typescript/system/notification/RecordingNotificationManager.ios.d.ts +36 -0
  122. package/lib/typescript/system/notification/RecordingNotificationManager.ios.d.ts.map +1 -0
  123. package/lib/typescript/system/notification/index.d.ts +0 -1
  124. package/lib/typescript/system/notification/index.d.ts.map +1 -1
  125. package/lib/typescript/system/notification/types.d.ts +12 -22
  126. package/lib/typescript/system/notification/types.d.ts.map +1 -1
  127. package/lib/typescript/types.d.ts +1 -0
  128. package/lib/typescript/types.d.ts.map +1 -1
  129. package/lib/typescript/utils/index.d.ts.map +1 -1
  130. package/lib/typescript/utils/paths.d.ts +4 -0
  131. package/lib/typescript/utils/paths.d.ts.map +1 -0
  132. package/lib/typescript/web-core/AudioContext.d.ts +8 -9
  133. package/lib/typescript/web-core/AudioContext.d.ts.map +1 -1
  134. package/lib/typescript/web-core/BaseAudioContext.d.ts +6 -7
  135. package/lib/typescript/web-core/BaseAudioContext.d.ts.map +1 -1
  136. package/lib/typescript/web-system/notification/PlaybackNotificationManager.d.ts +1 -2
  137. package/lib/typescript/web-system/notification/PlaybackNotificationManager.d.ts.map +1 -1
  138. package/lib/typescript/web-system/notification/RecordingNotificationManager.d.ts +2 -7
  139. package/lib/typescript/web-system/notification/RecordingNotificationManager.d.ts.map +1 -1
  140. package/package.json +1 -1
  141. package/src/AudioAPIModule/AudioAPIModule.ts +2 -1
  142. package/src/api.ts +2 -8
  143. package/src/core/AudioDecoder.ts +91 -21
  144. package/src/core/AudioRecorder.ts +2 -1
  145. package/src/core/AudioStretcher.ts +2 -1
  146. package/src/core/BaseAudioContext.ts +4 -6
  147. package/src/errors/AudioApiError.ts +8 -0
  148. package/src/errors/index.ts +1 -0
  149. package/src/interfaces.ts +1 -1
  150. package/src/specs/NativeAudioAPIModule.ts +5 -15
  151. package/src/specs/NativeAudioAPIModule.web.ts +1 -12
  152. package/src/system/notification/PlaybackNotificationManager.ts +42 -117
  153. package/src/system/notification/RecordingNotificationManager.ios.ts +65 -0
  154. package/src/system/notification/RecordingNotificationManager.ts +33 -183
  155. package/src/system/notification/index.ts +0 -1
  156. package/src/system/notification/types.ts +15 -37
  157. package/src/types.ts +2 -0
  158. package/src/utils/index.ts +3 -2
  159. package/src/utils/paths.ts +11 -0
  160. package/src/web-core/AudioContext.tsx +34 -19
  161. package/src/web-core/BaseAudioContext.tsx +9 -7
  162. package/src/web-system/notification/PlaybackNotificationManager.ts +1 -7
  163. package/src/web-system/notification/RecordingNotificationManager.ts +1 -16
  164. package/android/src/main/java/com/swmansion/audioapi/core/NativeAudioPlayer.kt +0 -26
  165. package/android/src/main/java/com/swmansion/audioapi/core/NativeAudioRecorder.kt +0 -26
  166. package/android/src/main/java/com/swmansion/audioapi/system/notification/SimpleNotification.kt +0 -119
  167. package/lib/commonjs/system/notification/SimpleNotificationManager.js +0 -125
  168. package/lib/commonjs/system/notification/SimpleNotificationManager.js.map +0 -1
  169. package/lib/module/system/notification/SimpleNotificationManager.js +0 -121
  170. package/lib/module/system/notification/SimpleNotificationManager.js.map +0 -1
  171. package/lib/typescript/system/notification/SimpleNotificationManager.d.ts +0 -21
  172. package/lib/typescript/system/notification/SimpleNotificationManager.d.ts.map +0 -1
  173. package/src/system/notification/SimpleNotificationManager.ts +0 -175
@@ -1,4 +1,4 @@
1
- import { TurboModule } from 'react-native';
1
+ import type { TurboModule } from 'react-native';
2
2
  import { AudioDevicesInfo, PermissionStatus } from '../system/types';
3
3
  type OptionsMap = {
4
4
  [key: string]: string | boolean | number | undefined;
@@ -22,11 +22,8 @@ interface Spec extends TurboModule {
22
22
  requestNotificationPermissions(): Promise<PermissionStatus>;
23
23
  checkNotificationPermissions(): Promise<PermissionStatus>;
24
24
  getDevicesInfo(): Promise<AudioDevicesInfo>;
25
- registerNotification(type: NotificationType, key: string): Promise<NotificationOpResponse>;
26
- showNotification(key: string, options: OptionsMap): Promise<NotificationOpResponse>;
27
- updateNotification(key: string, options: OptionsMap): Promise<NotificationOpResponse>;
25
+ showNotification(type: NotificationType, key: string, options: OptionsMap): Promise<NotificationOpResponse>;
28
26
  hideNotification(key: string): Promise<NotificationOpResponse>;
29
- unregisterNotification(key: string): Promise<NotificationOpResponse>;
30
27
  isNotificationActive(key: string): Promise<boolean>;
31
28
  }
32
29
  declare const NativeAudioAPIModule: Spec | null;
@@ -1 +1 @@
1
- {"version":3,"file":"NativeAudioAPIModule.d.ts","sourceRoot":"","sources":["../../../src/specs/NativeAudioAPIModule.ts"],"names":[],"mappings":"AAEA,OAAO,EAAuB,WAAW,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAErE,KAAK,UAAU,GAAG;IAChB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;CACtD,CAAC;AACF,KAAK,sBAAsB,GAAG;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AACnE,KAAK,gBAAgB,GAAG,UAAU,GAAG,WAAW,GAAG,QAAQ,CAAC;AAE5D,UAAU,IAAK,SAAQ,WAAW;IAChC,OAAO,IAAI,OAAO,CAAC;IACnB,4BAA4B,IAAI,MAAM,CAAC;IAGvC,uBAAuB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAC5D,sBAAsB,CACpB,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,EACtB,YAAY,EAAE,OAAO,GACpB,IAAI,CAAC;IACR,wBAAwB,IAAI,IAAI,CAAC;IAGjC,yBAAyB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IAClD,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;I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AG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CACrD;AAED,QAAA,MAAM,oBAAoB,aAAkD,CAAC;AAE7E,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
@@ -22,11 +22,8 @@ interface Spec extends TurboModule {
22
22
  requestNotificationPermissions(): Promise<PermissionStatus>;
23
23
  checkNotificationPermissions(): Promise<PermissionStatus>;
24
24
  getDevicesInfo(): Promise<AudioDevicesInfo>;
25
- registerNotification(type: NotificationType, key: string): Promise<NotificationOpResponse>;
26
- showNotification(key: string, options: OptionsMap): Promise<NotificationOpResponse>;
27
- updateNotification(key: string, options: OptionsMap): Promise<NotificationOpResponse>;
25
+ showNotification(type: NotificationType, key: string, options: OptionsMap): Promise<NotificationOpResponse>;
28
26
  hideNotification(key: string): Promise<NotificationOpResponse>;
29
- unregisterNotification(key: string): Promise<NotificationOpResponse>;
30
27
  isNotificationActive(key: string): Promise<boolean>;
31
28
  }
32
29
  declare const NativeAudioAPIModule: Spec;
@@ -1 +1 @@
1
- {"version":3,"file":"NativeAudioAPIModule.web.d.ts","sourceRoot":"","sources":["../../../src/specs/NativeAudioAPIModule.web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGrE,KAAK,UAAU,GAAG;IAChB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;CACtD,CAAC;AACF,KAAK,sBAAsB,GAAG;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AACnE,KAAK,gBAAgB,GAAG,UAAU,GAAG,WAAW,GAAG,QAAQ,CAAC;AAE5D,UAAU,IAAK,SAAQ,WAAW;IAChC,OAAO,IAAI,OAAO,CAAC;IACnB,4BAA4B,IAAI,MAAM,C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D,8BAA8B,IAAI,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC5D,4BAA4B,IAAI,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAG1D,cAAc,IAAI,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAG5C,gBAAgB,CACd,IAAI,EAAE,gBAAgB,EACtB,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,UAAU,GAClB,OAAO,CAAC,sBAAsB,CAAC,CAAC;IACnC,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;IAC/D,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CACrD;AAWD,QAAA,MAAM,oBAAoB,EAAE,IAsB3B,CAAC;AAEF,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
@@ -1,22 +1,45 @@
1
1
  import { AudioEventSubscription } from '../../events';
2
2
  import type { NotificationEvents, NotificationManager, PlaybackControlName, PlaybackNotificationEventName, PlaybackNotificationInfo } from './types';
3
- declare class PlaybackNotificationManager implements NotificationManager<PlaybackNotificationInfo, PlaybackNotificationInfo, PlaybackNotificationEventName> {
3
+ declare class PlaybackNotificationManager implements NotificationManager<PlaybackNotificationInfo, PlaybackNotificationEventName> {
4
4
  private notificationKey;
5
- private isRegistered_;
6
- private isShown_;
7
5
  private audioEventEmitter;
8
6
  constructor();
9
- register(): Promise<void>;
7
+ /**
8
+ * Show the notification with metadata or update if already visible.
9
+ * Automatically creates the notification on first call.
10
+ *
11
+ * @param info - The info to be displayed.
12
+ * @returns Promise that resolves after creating notification.
13
+ */
10
14
  show(info: PlaybackNotificationInfo): Promise<void>;
11
- update(info: PlaybackNotificationInfo): Promise<void>;
15
+ /**
16
+ * Hide the notification.
17
+ *
18
+ * @returns Promise that resolves after hiding notification.
19
+ */
12
20
  hide(): Promise<void>;
13
- unregister(): Promise<void>;
21
+ /**
22
+ * Enable or disable a specific playback control.
23
+ *
24
+ * @param control - The control to enable or disable on the notification.
25
+ * @param enabled - Whether to enable (true) or disable (false) the control.
26
+ * @returns Promise that resolves after showing modified notification.
27
+ */
14
28
  enableControl(control: PlaybackControlName, enabled: boolean): Promise<void>;
29
+ /**
30
+ * Check if the notification is currently active.
31
+ *
32
+ * @returns Promise that resolves to whether notification is active.
33
+ */
15
34
  isActive(): Promise<boolean>;
16
- isRegistered(): boolean;
35
+ /**
36
+ * Add an event listener for notification actions.
37
+ *
38
+ * @param eventName - The event name to listen for.
39
+ * @param callback - The callback to invoke on event.
40
+ * @returns Class that represents the subscription.
41
+ */
17
42
  addEventListener<T extends PlaybackNotificationEventName>(eventName: T, callback: (event: NotificationEvents[T]) => void): AudioEventSubscription;
18
- /** Remove an event listener. */
19
- removeEventListener(subscription: AudioEventSubscription): void;
20
43
  }
21
44
  declare const _default: PlaybackNotificationManager;
22
45
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"PlaybackNotificationManager.d.ts","sourceRoot":"","sources":["../../../../src/system/notification/PlaybackNotificationManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAEzE,OAAO,KAAK,EACV,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,6BAA6B,EAC7B,wBAAwB,EACzB,MAAM,SAAS,CAAC;AAGjB,cAAM,2BACJ,YACE,mBAAmB,CACjB,wBAAwB,EACxB,wBAAwB,EACxB,6BAA6B,CAC9B;IAEH,OAAO,CAAC,eAAe,CAAc;IACrC,OAAO,CAAC,aAAa,CAAS;IAC9B,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,iBAAiB,CAAoB;;IAOvC,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAuBzB,IAAI,CAAC,IAAI,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC;IAwBnD,MAAM,CAAC,IAAI,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC;IAqBrD,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAqBrB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAyB3B,aAAa,CACjB,OAAO,EAAE,mBAAmB,EAC5B,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,IAAI,CAAC;IAsBV,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;IAUlC,YAAY,IAAI,OAAO;IAKvB,gBAAgB,CAAC,CAAC,SAAS,6BAA6B,EACtD,SAAS,EAAE,CAAC,EACZ,QAAQ,EAAE,CAAC,KAAK,EAAE,kBAAkB,CAAC,CAAC,CAAC,KAAK,IAAI,GAC/C,sBAAsB;IAIzB,gCAAgC;IAChC,mBAAmB,CAAC,YAAY,EAAE,sBAAsB,GAAG,IAAI;CAGhE;;AAED,wBAAiD"}
1
+ {"version":3,"file":"PlaybackNotificationManager.d.ts","sourceRoot":"","sources":["../../../../src/system/notification/PlaybackNotificationManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAEzE,OAAO,KAAK,EACV,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,6BAA6B,EAC7B,wBAAwB,EACzB,MAAM,SAAS,CAAC;AAGjB,cAAM,2BACJ,YACE,mBAAmB,CAAC,wBAAwB,EAAE,6BAA6B,CAAC;IAE9E,OAAO,CAAC,eAAe,CAAc;IACrC,OAAO,CAAC,iBAAiB,CAAoB;;IAM7C;;;;;;OAMG;IACG,IAAI,CAAC,IAAI,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC;IAgBzD;;;;OAIG;IACG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAc3B;;;;;;OAMG;IACG,aAAa,CACjB,OAAO,EAAE,mBAAmB,EAC5B,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,IAAI,CAAC;IAiBhB;;;;OAIG;IACG,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;IAUlC;;;;;;OAMG;IACH,gBAAgB,CAAC,CAAC,SAAS,6BAA6B,EACtD,SAAS,EAAE,CAAC,EACZ,QAAQ,EAAE,CAAC,KAAK,EAAE,kBAAkB,CAAC,CAAC,CAAC,KAAK,IAAI,GAC/C,sBAAsB;CAG1B;;AAED,wBAAiD"}
@@ -1,23 +1,36 @@
1
1
  import { AudioEventSubscription } from '../../events';
2
- import type { NotificationEvents, NotificationManager, RecordingControlName, RecordingNotificationEventName, RecordingNotificationInfo } from './types';
3
- declare class RecordingNotificationManager implements NotificationManager<RecordingNotificationInfo, RecordingNotificationInfo, RecordingNotificationEventName> {
4
- private isRegistered_;
5
- private isShown_;
2
+ import type { RecordingNotificationEvent, NotificationManager, RecordingNotificationEventName, RecordingNotificationInfo } from './types';
3
+ declare class RecordingNotificationManager implements NotificationManager<RecordingNotificationInfo, RecordingNotificationEventName> {
6
4
  private notificationKey;
7
5
  private audioEventEmitter;
8
- private isIOS;
9
6
  constructor();
10
- register(): Promise<void>;
7
+ /**
8
+ * Show the notification with metadata or update if already visible.
9
+ *
10
+ * @param info - The info to be displayed.
11
+ * @returns Promise that resolves after creating notification.
12
+ */
11
13
  show(info: RecordingNotificationInfo): Promise<void>;
12
- update(info: RecordingNotificationInfo): Promise<void>;
14
+ /**
15
+ * Hide the notification.
16
+ *
17
+ * @returns Promise that resolves after hiding notification.
18
+ */
13
19
  hide(): Promise<void>;
14
- unregister(): Promise<void>;
15
- enableControl(control: RecordingControlName, enabled: boolean): Promise<void>;
20
+ /**
21
+ * Check if the notification is currently active.
22
+ *
23
+ * @returns Promise that resolves to whether notification is active.
24
+ */
16
25
  isActive(): Promise<boolean>;
17
- isRegistered(): boolean;
18
- addEventListener<T extends RecordingNotificationEventName>(eventName: T, callback: (event: NotificationEvents[T]) => void): AudioEventSubscription;
19
- /** Remove an event listener. */
20
- removeEventListener(subscription: AudioEventSubscription): void;
26
+ /**
27
+ * Add an event listener for notification actions.
28
+ *
29
+ * @param eventName - The event name to listen for.
30
+ * @param callback - The callback to invoke on event.
31
+ * @returns Class that represents the subscription.
32
+ */
33
+ addEventListener<T extends RecordingNotificationEventName>(eventName: T, callback: (event: RecordingNotificationEvent[T]) => void): AudioEventSubscription;
21
34
  }
22
35
  declare const _default: RecordingNotificationManager;
23
36
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"RecordingNotificationManager.d.ts","sourceRoot":"","sources":["../../../../src/system/notification/RecordingNotificationManager.ts"],"names":[],"mappings":"AACA,OAAO,EAAqB,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAEzE,OAAO,KAAK,EACV,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,8BAA8B,EAC9B,yBAAyB,EAC1B,MAAM,SAAS,CAAC;AAGjB,cAAM,4BACJ,YACE,mBAAmB,CACjB,yBAAyB,EACzB,yBAAyB,EACzB,8BAA8B,CAC/B;IAEH,OAAO,CAAC,aAAa,CAAS;IAC9B,OAAO,CAAC,QAAQ,CAAS;IAEzB,OAAO,CAAC,eAAe,CAAe;IACtC,OAAO,CAAC,iBAAiB,CAAoB;IAC7C,OAAO,CAAC,KAAK,CAAyB;;IAOhC,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IA6BzB,IAAI,CAAC,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC;IA8BpD,MAAM,CAAC,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC;IA0BtD,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IA2BrB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IA+B3B,aAAa,CACjB,OAAO,EAAE,oBAAoB,EAC7B,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,IAAI,CAAC;IA2BV,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;IAelC,YAAY,IAAI,OAAO;IAKvB,gBAAgB,CAAC,CAAC,SAAS,8BAA8B,EACvD,SAAS,EAAE,CAAC,EACZ,QAAQ,EAAE,CAAC,KAAK,EAAE,kBAAkB,CAAC,CAAC,CAAC,KAAK,IAAI,GAC/C,sBAAsB;IAYzB,gCAAgC;IAChC,mBAAmB,CAAC,YAAY,EAAE,sBAAsB,GAAG,IAAI;CAGhE;;AAED,wBAAkD"}
1
+ {"version":3,"file":"RecordingNotificationManager.d.ts","sourceRoot":"","sources":["../../../../src/system/notification/RecordingNotificationManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAEzE,OAAO,KAAK,EACV,0BAA0B,EAC1B,mBAAmB,EACnB,8BAA8B,EAC9B,yBAAyB,EAC1B,MAAM,SAAS,CAAC;AAIjB,cAAM,4BACJ,YACE,mBAAmB,CACjB,yBAAyB,EACzB,8BAA8B,CAC/B;IAEH,OAAO,CAAC,eAAe,CAAsC;IAC7D,OAAO,CAAC,iBAAiB,CAAoB;;IAM7C;;;;;OAKG;IACG,IAAI,CAAC,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC;IAgB1D;;;;OAIG;IACG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAc3B;;;;OAIG;IACG,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;IAUlC;;;;;;OAMG;IACH,gBAAgB,CAAC,CAAC,SAAS,8BAA8B,EACvD,SAAS,EAAE,CAAC,EACZ,QAAQ,EAAE,CAAC,KAAK,EAAE,0BAA0B,CAAC,CAAC,CAAC,KAAK,IAAI,GACvD,sBAAsB;CAG1B;;AAED,wBAAkD"}
@@ -0,0 +1,36 @@
1
+ import { AudioEventSubscription } from '../../events';
2
+ import type { NotificationManager, RecordingNotificationEvent, RecordingNotificationEventName, RecordingNotificationInfo } from './types';
3
+ declare class RecordingNotificationManager implements NotificationManager<RecordingNotificationInfo, RecordingNotificationEventName> {
4
+ private audioEventEmitter;
5
+ constructor();
6
+ /**
7
+ * Show the notification with metadata or update if already visible.
8
+ *
9
+ * @param info - The info to be displayed.
10
+ * @returns Promise that resolves after creating notification.
11
+ */
12
+ show(_info: RecordingNotificationInfo): Promise<void>;
13
+ /**
14
+ * Hide the notification.
15
+ *
16
+ * @returns Promise that resolves after hiding notification.
17
+ */
18
+ hide(): Promise<void>;
19
+ /**
20
+ * Check if the notification is currently active.
21
+ *
22
+ * @returns Promise that resolves to whether notification is active.
23
+ */
24
+ isActive(): Promise<boolean>;
25
+ /**
26
+ * Add an event listener for notification actions.
27
+ *
28
+ * @param eventName - The event name to listen for.
29
+ * @param callback - The callback to invoke on event.
30
+ * @returns Promise that resolves to whether notification is active.
31
+ */
32
+ addEventListener<T extends RecordingNotificationEventName>(eventName: T, callback: (event: RecordingNotificationEvent[T]) => void): AudioEventSubscription;
33
+ }
34
+ declare const _default: RecordingNotificationManager;
35
+ export default _default;
36
+ //# sourceMappingURL=RecordingNotificationManager.ios.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RecordingNotificationManager.ios.d.ts","sourceRoot":"","sources":["../../../../src/system/notification/RecordingNotificationManager.ios.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,sBAAsB,EAAE,MAAM,cAAc,CAAC;AACzE,OAAO,KAAK,EACV,mBAAmB,EACnB,0BAA0B,EAC1B,8BAA8B,EAC9B,yBAAyB,EAC1B,MAAM,SAAS,CAAC;AAEjB,cAAM,4BACJ,YACE,mBAAmB,CACjB,yBAAyB,EACzB,8BAA8B,CAC/B;IAEH,OAAO,CAAC,iBAAiB,CAAoB;;IAS7C;;;;;OAKG;IACG,IAAI,CAAC,KAAK,EAAE,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC;IAE3D;;;;OAIG;IACG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAE3B;;;;OAIG;IAEG,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;IAIlC;;;;;;OAMG;IACH,gBAAgB,CAAC,CAAC,SAAS,8BAA8B,EACvD,SAAS,EAAE,CAAC,EACZ,QAAQ,EAAE,CAAC,KAAK,EAAE,0BAA0B,CAAC,CAAC,CAAC,KAAK,IAAI,GACvD,sBAAsB;CAG1B;;AAED,wBAAkD"}
@@ -1,5 +1,4 @@
1
1
  export { default as PlaybackNotificationManager } from './PlaybackNotificationManager';
2
2
  export { default as RecordingNotificationManager } from './RecordingNotificationManager';
3
- export { default as SimpleNotificationManager } from './SimpleNotificationManager';
4
3
  export * from './types';
5
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/system/notification/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AACvF,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACnF,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/system/notification/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AACvF,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AACzF,cAAc,SAAS,CAAC"}
@@ -1,14 +1,10 @@
1
1
  import type { AudioEventSubscription } from '../../events';
2
2
  import { EventEmptyType, EventTypeWithValue } from '../../events/types';
3
- export interface NotificationManager<TShowOptions, TUpdateOptions, TEventName extends NotificationEventName> {
4
- register(): Promise<void>;
3
+ export interface NotificationManager<TShowOptions, TEventName extends NotificationEventName> {
5
4
  show(options: TShowOptions): Promise<void>;
6
- update(options: TUpdateOptions): Promise<void>;
7
5
  hide(): Promise<void>;
8
- unregister(): Promise<void>;
9
6
  isActive(): Promise<boolean>;
10
7
  addEventListener<T extends TEventName>(eventName: T, callback: NotificationCallback<T>): AudioEventSubscription | undefined;
11
- removeEventListener(subscription: AudioEventSubscription): void;
12
8
  }
13
9
  export interface PlaybackNotificationInfo {
14
10
  title?: string;
@@ -36,30 +32,24 @@ interface PlaybackNotificationEvent {
36
32
  playbackNotificationSeekTo: EventTypeWithValue;
37
33
  playbackNotificationDismissed: EventEmptyType;
38
34
  }
39
- export type PlaybackNotificationEventName = keyof PlaybackNotificationEvent;
40
35
  export interface RecordingNotificationInfo {
41
36
  title?: string;
42
- description?: string;
43
- artwork?: string | {
44
- uri: string;
45
- };
46
- state?: 'recording' | 'stopped';
47
- control?: RecordingControlName;
48
- enabled?: boolean;
37
+ contentText?: string;
38
+ paused?: boolean;
39
+ smallIconResourceName?: string;
40
+ largeIconResourceName?: string;
41
+ pauseIconResourceName?: string;
42
+ resumeIconResourceName?: string;
43
+ color?: number;
49
44
  }
50
- export type RecordingControlName = 'start' | 'stop';
51
- interface RecordingNotificationEvent {
52
- recordingNotificationStart: EventEmptyType;
53
- recordingNotificationStop: EventEmptyType;
54
- recordingNotificationDismissed: EventEmptyType;
45
+ export interface RecordingNotificationEvent {
46
+ recordingNotificationPause: EventEmptyType;
47
+ recordingNotificationResume: EventEmptyType;
55
48
  }
49
+ export type PlaybackNotificationEventName = keyof PlaybackNotificationEvent;
56
50
  export type RecordingNotificationEventName = keyof RecordingNotificationEvent;
57
51
  export type NotificationEvents = PlaybackNotificationEvent & RecordingNotificationEvent;
58
52
  export type NotificationEventName = keyof NotificationEvents;
59
53
  export type NotificationCallback<Name extends NotificationEventName> = (event: NotificationEvents[Name]) => void;
60
- export interface SimpleNotificationOptions {
61
- title?: string;
62
- text?: string;
63
- }
64
54
  export {};
65
55
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/system/notification/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAIxE,MAAM,WAAW,mBAAmB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4B,EAAE,cAAc,CAAC;IAC7C,+BAA+B,EAAE,kBAAkB,CAAC;IACpD,gCAAgC,EAAE,kBAAkB,CAAC;IACrD,0BAA0B,EAAE,kBAAkB,CAAC;IAC/C,6BAA6B,EAAE,cAAc,CAAC;CAC/C;AAED,MAAM,WAAW,yBAAyB;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,0BAA0B;IACzC,0BAA0B,EAAE,cAAc,CAAC;IAC3C,2BAA2B,EAAE,cAAc,CAAC;CAC7C;AAED,MAAM,MAAM,6BAA6B,GAAG,MAAM,yBAAyB,CAAC;AAE5E,MAAM,MAAM,8BAA8B,GAAG,MAAM,0BAA0B,CAAC;AAE9E,MAAM,MAAM,kBAAkB,GAAG,yBAAyB,GACxD,0BAA0B,CAAC;AAE7B,MAAM,MAAM,qBAAqB,GAAG,MAAM,kBAAkB,CAAC;AAE7D,MAAM,MAAM,oBAAoB,CAAC,IAAI,SAAS,qBAAqB,IAAI,CACrE,KAAK,EAAE,kBAAkB,CAAC,IAAI,CAAC,KAC5B,IAAI,CAAC"}
@@ -110,4 +110,5 @@ export interface IIRFilterNodeOptions {
110
110
  feedforward: number[];
111
111
  feedback: number[];
112
112
  }
113
+ export type DecodeDataInput = number | string | ArrayBuffer;
113
114
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAE7C,MAAM,MAAM,M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AAO,CAAC;CAC1B;AAED,MAAM,MAAM,aAAa,GAAG,gBAAgB,GAAG,gBAAgB,CAAC;AAEhE,MAAM,WAAW,oBAAoB;IACnC,MAAM,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAC5B,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;AAElD,MAAM,WAAW,4BAA4B;IAC3C;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,MAAM,GAAG,WAAW,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAEA,wBAAgB,qBAAqB,SAapC;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAErE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAGA,wBAAgB,qBAAqB,SAapC;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAErE"}
@@ -0,0 +1,4 @@
1
+ export declare function isRemoteSource(url: string): boolean;
2
+ export declare function isBase64Source(data: string): boolean;
3
+ export declare function isDataBlobString(data: string): boolean;
4
+ //# sourceMappingURL=paths.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../../src/utils/paths.ts"],"names":[],"mappings":"AAAA,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAEnD;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEpD;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEtD"}
@@ -1,18 +1,18 @@
1
- import { ContextState, PeriodicWaveConstraints, AudioContextOptions, AudioBufferBaseSourceNodeOptions, IIRFilterNodeOptions } from '../types';
2
- import BaseAudioContext from './BaseAudioContext';
1
+ import { AudioBufferBaseSourceNodeOptions, AudioContextOptions, ContextState, DecodeDataInput, IIRFilterNodeOptions, PeriodicWaveConstraints } from '../types';
3
2
  import AnalyserNode from './AnalyserNode';
4
- import AudioDestinationNode from './AudioDestinationNode';
5
3
  import AudioBuffer from './AudioBuffer';
6
4
  import AudioBufferSourceNode from './AudioBufferSourceNode';
5
+ import AudioDestinationNode from './AudioDestinationNode';
6
+ import BaseAudioContext from './BaseAudioContext';
7
7
  import BiquadFilterNode from './BiquadFilterNode';
8
- import IIRFilterNode from './IIRFilterNode';
8
+ import ConvolverNode from './ConvolverNode';
9
+ import { ConvolverNodeOptions } from './ConvolverNodeOptions';
10
+ import DelayNode from './DelayNode';
9
11
  import GainNode from './GainNode';
12
+ import IIRFilterNode from './IIRFilterNode';
10
13
  import OscillatorNode from './OscillatorNode';
11
14
  import PeriodicWave from './PeriodicWave';
12
15
  import StereoPannerNode from './StereoPannerNode';
13
- import ConvolverNode from './ConvolverNode';
14
- import DelayNode from './DelayNode';
15
- import { ConvolverNodeOptions } from './ConvolverNodeOptions';
16
16
  import ConstantSourceNode from './ConstantSourceNode';
17
17
  import WaveShaperNode from './WaveShaperNode';
18
18
  export default class AudioContext implements BaseAudioContext {
@@ -35,8 +35,7 @@ export default class AudioContext implements BaseAudioContext {
35
35
  createPeriodicWave(real: Float32Array, imag: Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave;
36
36
  createAnalyser(): AnalyserNode;
37
37
  createWaveShaper(): WaveShaperNode;
38
- decodeAudioDataSource(source: string): Promise<AudioBuffer>;
39
- decodeAudioData(arrayBuffer: ArrayBuffer): Promise<AudioBuffer>;
38
+ decodeAudioData(source: DecodeDataInput, fetchOptions?: RequestInit): Promise<AudioBuffer>;
40
39
  close(): Promise<void>;
41
40
  resume(): Promise<void>;
42
41
  suspend(): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"AudioContext.d.ts","sourceRoot":"","sources":["../../../src/web-core/AudioContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,uBAAuB,EACvB,mBAAmB,EACnB,gCAAgC,EAChC,oBAAoB,EACrB,MAAM,UAAU,CAAC;AAElB,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAClD,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAC1D,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,qBAAqB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAClD,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAClD,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAG9D,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AACtD,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAE9C,MAAM,CAAC,OAAO,OAAO,YAAa,YAAW,gBAAgB;IAC3D,QAAQ,CAAC,OAAO,EAAE,UAAU,CAAC,YAAY,CAAC;IAE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AgB;IAItC,eAAe,CAAC,OAAO,EAAE,oBAAoB,GAAG,aAAa;IAO7D,eAAe,CAAC,OAAO,CAAC,EAAE,oBAAoB,GAAG,aAAa;IAuBxD,kBAAkB,CACtB,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,qBAAqB,CAAC;IAgBjC,YAAY,CACV,aAAa,EAAE,MAAM,EACrB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM,GACjB,WAAW;IAwBd,kBAAkB,CAChB,IAAI,EAAE,YAAY,EAClB,IAAI,EAAE,YAAY,EAClB,WAAW,CAAC,EAAE,uBAAuB,GACpC,YAAY;IAYf,cAAc,IAAI,YAAY;IAI9B,gBAAgB,IAAI,cAAc;IAI5B,eAAe,CACnB,MAAM,EAAE,eAAe,EACvB,YAAY,CAAC,EAAE,WAAW,GACzB,OAAO,CAAC,WAAW,CAAC;IAuBjB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAItB,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAIvB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAG/B"}
@@ -1,17 +1,17 @@
1
- import { ContextState, PeriodicWaveConstraints, IIRFilterNodeOptions } from '../types';
1
+ import { ContextState, IIRFilterNodeOptions, PeriodicWaveConstraints } from '../types';
2
2
  import AnalyserNode from './AnalyserNode';
3
- import AudioDestinationNode from './AudioDestinationNode';
4
3
  import AudioBuffer from './AudioBuffer';
5
4
  import AudioBufferSourceNode from './AudioBufferSourceNode';
5
+ import AudioDestinationNode from './AudioDestinationNode';
6
6
  import BiquadFilterNode from './BiquadFilterNode';
7
+ import ConstantSourceNode from './ConstantSourceNode';
8
+ import ConvolverNode from './ConvolverNode';
7
9
  import DelayNode from './DelayNode';
8
- import IIRFilterNode from './IIRFilterNode';
9
10
  import GainNode from './GainNode';
11
+ import IIRFilterNode from './IIRFilterNode';
10
12
  import OscillatorNode from './OscillatorNode';
11
13
  import PeriodicWave from './PeriodicWave';
12
14
  import StereoPannerNode from './StereoPannerNode';
13
- import ConstantSourceNode from './ConstantSourceNode';
14
- import ConvolverNode from './ConvolverNode';
15
15
  import WaveShaperNode from './WaveShaperNode';
16
16
  export default interface BaseAudioContext {
17
17
  readonly context: globalThis.BaseAudioContext;
@@ -32,7 +32,6 @@ export default interface BaseAudioContext {
32
32
  createPeriodicWave(real: Float32Array, imag: Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave;
33
33
  createAnalyser(): AnalyserNode;
34
34
  createWaveShaper(): WaveShaperNode;
35
- decodeAudioDataSource(source: string): Promise<AudioBuffer>;
36
- decodeAudioData(arrayBuffer: ArrayBuffer): Promise<AudioBuffer>;
35
+ decodeAudioData(arrayBuffer: ArrayBuffer, fetchOptions?: RequestInit): Promise<AudioBuffer>;
37
36
  }
38
37
  //# sourceMappingURL=BaseAudioContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BaseAudioContext.d.ts","sourceRoot":"","sources":["../../../src/web-core/BaseAudioContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,UAAU,CAAC;AAClB,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAC1D,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,qBAAqB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAClD,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAClD,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AACtD,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C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YAAY,CACV,aAAa,EAAE,MAAM,EACrB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM,GACjB,WAAW,CAAC;IACf,kBAAkB,CAChB,IAAI,EAAE,YAAY,EAClB,IAAI,EAAE,YAAY,EAClB,WAAW,CAAC,EAAE,uBAAuB,GACpC,YAAY,CAAC;IAChB,cAAc,IAAI,YAAY,CAAC;IAC/B,gBAAgB,IAAI,cAAc,CAAC;IACnC,eAAe,CACb,WAAW,EAAE,WAAW,EACxB,YAAY,CAAC,EAAE,WAAW,GACzB,OAAO,CAAC,WAAW,CAAC,CAAC;CACzB"}
@@ -1,6 +1,6 @@
1
1
  import type { AudioEventSubscription } from '../../events';
2
2
  import type { NotificationEvents, NotificationManager, PlaybackControlName, PlaybackNotificationEventName, PlaybackNotificationInfo } from '../../system';
3
- declare class PlaybackNotificationManager implements NotificationManager<PlaybackNotificationInfo, PlaybackNotificationInfo, PlaybackNotificationEventName> {
3
+ declare class PlaybackNotificationManager implements NotificationManager<PlaybackNotificationInfo, PlaybackNotificationEventName> {
4
4
  private isRegistered_;
5
5
  private isShown_;
6
6
  constructor();
@@ -13,7 +13,6 @@ declare class PlaybackNotificationManager implements NotificationManager<Playbac
13
13
  isActive(): Promise<boolean>;
14
14
  isRegistered(): boolean;
15
15
  addEventListener<T extends PlaybackNotificationEventName>(eventName: T, callback: (event: NotificationEvents[T]) => void): AudioEventSubscription;
16
- removeEventListener(subscription: AudioEventSubscription): void;
17
16
  }
18
17
  declare const _default: PlaybackNotificationManager;
19
18
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"PlaybackNotificationManager.d.ts","sourceRoot":"","sources":["../../../../src/web-system/notification/PlaybackNotificationManager.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,KAAK,EACV,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,6BAA6B,EAC7B,wBAAwB,EACzB,MAAM,cAAc,CAAC;AAGtB,cAAM,2BACJ,YACE,mBAAmB,CACjB,wBAAwB,EACxB,wBAAwB,EACxB,6BAA6B,CAC9B;IAEH,OAAO,CAAC,aAAa,CAAS;IAC9B,OAAO,CAAC,QAAQ,CAAS;;IAInB,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAEzB,IAAI,CAAC,IAAI,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC;IAEnD,MAAM,CAAC,IAAI,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC;IAErD,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAErB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAE3B,aAAa,CACjB,OAAO,EAAE,mBAAmB,EAC5B,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,IAAI,CAAC;IAEV,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;IAIlC,YAAY,IAAI,OAAO;IAIvB,gBAAgB,CAAC,CAAC,SAAS,6BAA6B,EACtD,SAAS,EAAE,CAAC,EACZ,QAAQ,EAAE,CAAC,KAAK,EAAE,kBAAkB,CAAC,CAAC,CAAC,KAAK,IAAI,GAC/C,sBAAsB;IAOzB,mBAAmB,CAAC,YAAY,EAAE,sBAAsB,GAAG,IAAI;CAChE;;AAED,wBAAiD"}
1
+ {"version":3,"file":"PlaybackNotificationManager.d.ts","sourceRoot":"","sources":["../../../../src/web-system/notification/PlaybackNotificationManager.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,KAAK,EACV,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,6BAA6B,EAC7B,wBAAwB,EACzB,MAAM,cAAc,CAAC;AAGtB,cAAM,2BACJ,YACE,mBAAmB,CAAC,wBAAwB,EAAE,6BAA6B,CAAC;IAE9E,OAAO,CAAC,aAAa,CAAS;IAC9B,OAAO,CAAC,QAAQ,CAAS;;IAInB,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAEzB,IAAI,CAAC,IAAI,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC;IAEnD,MAAM,CAAC,IAAI,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC;IAErD,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAErB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAE3B,aAAa,CACjB,OAAO,EAAE,mBAAmB,EAC5B,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,IAAI,CAAC;IAEV,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;IAIlC,YAAY,IAAI,OAAO;IAIvB,gBAAgB,CAAC,CAAC,SAAS,6BAA6B,EACtD,SAAS,EAAE,CAAC,EACZ,QAAQ,EAAE,CAAC,KAAK,EAAE,kBAAkB,CAAC,CAAC,CAAC,KAAK,IAAI,GAC/C,sBAAsB;CAM1B;;AAED,wBAAiD"}
@@ -1,19 +1,14 @@
1
1
  import type { AudioEventSubscription } from '../../events';
2
- import type { NotificationEvents, NotificationManager, RecordingControlName, RecordingNotificationEventName, RecordingNotificationInfo } from '../../system';
3
- declare class RecordingNotificationManager implements NotificationManager<RecordingNotificationInfo, RecordingNotificationInfo, RecordingNotificationEventName> {
2
+ import type { NotificationEvents, NotificationManager, RecordingNotificationEventName, RecordingNotificationInfo } from '../../system';
3
+ declare class RecordingNotificationManager implements NotificationManager<RecordingNotificationInfo, RecordingNotificationEventName> {
4
4
  private isRegistered_;
5
5
  private isShown_;
6
6
  constructor();
7
- register(): Promise<void>;
8
7
  show(info: RecordingNotificationInfo): Promise<void>;
9
- update(info: RecordingNotificationInfo): Promise<void>;
10
8
  hide(): Promise<void>;
11
- unregister(): Promise<void>;
12
- enableControl(control: RecordingControlName, enabled: boolean): Promise<void>;
13
9
  isActive(): Promise<boolean>;
14
10
  isRegistered(): boolean;
15
11
  addEventListener<T extends RecordingNotificationEventName>(eventName: T, callback: (event: NotificationEvents[T]) => void): AudioEventSubscription;
16
- removeEventListener(subscription: AudioEventSubscription): void;
17
12
  }
18
13
  declare const _default: RecordingNotificationManager;
19
14
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"RecordingNotificationManager.d.ts","sourceRoot":"","sources":["../../../../src/web-system/notification/RecordingNotificationManager.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,KAAK,EACV,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,8BAA8B,EAC9B,yBAAyB,EAC1B,MAAM,cAAc,CAAC;AAGtB,cAAM,4BACJ,YACE,mBAAmB,CACjB,yBAAyB,EACzB,yBAAyB,EACzB,8BAA8B,CAC/B;IAEH,OAAO,CAAC,aAAa,CAAS;IAC9B,OAAO,CAAC,QAAQ,CAAS;;IAInB,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAEzB,IAAI,CAAC,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC;IAEpD,MAAM,CAAC,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC;IAEtD,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAErB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAE3B,aAAa,CACjB,OAAO,EAAE,oBAAoB,EAC7B,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,IAAI,CAAC;IAEV,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;IAIlC,YAAY,IAAI,OAAO;IAIvB,gBAAgB,CAAC,CAAC,SAAS,8BAA8B,EACvD,SAAS,EAAE,CAAC,EACZ,QAAQ,EAAE,CAAC,KAAK,EAAE,kBAAkB,CAAC,CAAC,CAAC,KAAK,IAAI,GAC/C,sBAAsB;IAOzB,mBAAmB,CAAC,YAAY,EAAE,sBAAsB,GAAG,IAAI;CAChE;;AAED,wBAAkD"}
1
+ {"version":3,"file":"RecordingNotificationManager.d.ts","sourceRoot":"","sources":["../../../../src/web-system/notification/RecordingNotificationManager.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,KAAK,EACV,kBAAkB,EAClB,mBAAmB,EACnB,8BAA8B,EAC9B,yBAAyB,EAC1B,MAAM,cAAc,CAAC;AAGtB,cAAM,4BACJ,YACE,mBAAmB,CACjB,yBAAyB,EACzB,8BAA8B,CAC/B;IAEH,OAAO,CAAC,aAAa,CAAS;IAC9B,OAAO,CAAC,QAAQ,CAAS;;IAInB,IAAI,CAAC,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC;IAEpD,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAErB,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;IAIlC,YAAY,IAAI,OAAO;IAIvB,gBAAgB,CAAC,CAAC,SAAS,8BAA8B,EACvD,SAAS,EAAE,CAAC,EACZ,QAAQ,EAAE,CAAC,KAAK,EAAE,kBAAkB,CAAC,CAAC,CAAC,KAAK,IAAI,GAC/C,sBAAsB;CAM1B;;AAED,wBAAkD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-audio-api",
3
- "version": "0.11.0-nightly-b30bac9-20260114",
3
+ "version": "0.11.0",
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"
@@ -4,6 +4,7 @@ import type {
4
4
  IAudioAPIModule,
5
5
  IWorkletsModule,
6
6
  } from './ModuleInterfaces';
7
+ import { AudioApiError } from '../errors';
7
8
 
8
9
  class AudioAPIModule implements IAudioAPIModule {
9
10
  #workletsModule_: IWorkletsModule | null = null;
@@ -24,7 +25,7 @@ class AudioAPIModule implements IAudioAPIModule {
24
25
  }
25
26
 
26
27
  if (!NativeAudioAPIModule) {
27
- throw new Error(
28
+ throw new AudioApiError(
28
29
  `Failed to install react-native-audio-api: The native module could not be found.`
29
30
  );
30
31
  }
package/src/api.ts CHANGED
@@ -37,18 +37,12 @@ export * from './types';
37
37
  export { default as FilePreset } from './utils/filePresets';
38
38
 
39
39
  // Notification System
40
- export {
41
- PlaybackNotificationManager,
42
- RecordingNotificationManager,
43
- } from './system/notification';
40
+ export { PlaybackNotificationManager } from './system/notification';
41
+ export { RecordingNotificationManager } from './system/notification';
44
42
 
45
43
  export {
46
44
  NotificationManager,
47
45
  PlaybackControlName,
48
46
  PlaybackNotificationEventName,
49
47
  PlaybackNotificationInfo,
50
- RecordingControlName,
51
- RecordingNotificationEventName,
52
- RecordingNotificationInfo,
53
- SimpleNotificationOptions,
54
48
  } from './system/notification';