@edkimmel/expo-audio-stream 0.5.0 → 0.6.1

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 (34) hide show
  1. package/NATIVE_EVENTS.md +60 -6
  2. package/android/.gradle/8.9/checksums/checksums.lock +0 -0
  3. package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
  4. package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
  5. package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
  6. package/android/.gradle/8.9/gc.properties +0 -0
  7. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  8. package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
  9. package/android/.gradle/vcs-1/gc.properties +0 -0
  10. package/android/src/main/java/expo/modules/audiostream/AudioEffectsManager.kt +6 -11
  11. package/android/src/main/java/expo/modules/audiostream/AudioRecorderManager.kt +23 -6
  12. package/android/src/main/java/expo/modules/audiostream/CommunicationAudioManager.kt +155 -0
  13. package/android/src/main/java/expo/modules/audiostream/Constants.kt +1 -0
  14. package/android/src/main/java/expo/modules/audiostream/ExpoPlayAudioStreamModule.kt +12 -3
  15. package/android/src/main/java/expo/modules/audiostream/pipeline/AudioPipeline.kt +12 -9
  16. package/build/events.d.ts +22 -0
  17. package/build/events.d.ts.map +1 -1
  18. package/build/events.js +18 -0
  19. package/build/events.js.map +1 -1
  20. package/build/index.d.ts +2 -0
  21. package/build/index.d.ts.map +1 -1
  22. package/build/index.js +21 -10
  23. package/build/index.js.map +1 -1
  24. package/build/types.d.ts +13 -0
  25. package/build/types.d.ts.map +1 -1
  26. package/build/types.js.map +1 -1
  27. package/ios/ExpoPlayAudioStreamModule.swift +29 -12
  28. package/ios/Microphone.swift +153 -197
  29. package/ios/MicrophoneDataDelegate.swift +10 -1
  30. package/ios/SharedAudioEngine.swift +18 -0
  31. package/package.json +1 -1
  32. package/src/events.ts +28 -0
  33. package/src/index.ts +29 -26
  34. package/src/types.ts +13 -0
package/src/types.ts CHANGED
@@ -140,6 +140,19 @@ export interface RecordingConfig {
140
140
  export interface MicrophoneErrorEvent {
141
141
  code: string;
142
142
  message: string;
143
+ /**
144
+ * True when the recording session has stopped and the caller must call
145
+ * stopMicrophone() and reconnect to resume. False for transient conditions
146
+ * where recording continues (READ_ERROR on iOS) or the library will
147
+ * auto-recover (INTERRUPTED + autoResuming: true).
148
+ */
149
+ isFatal: boolean;
150
+ /**
151
+ * True only when code is INTERRUPTED — the library is waiting for the
152
+ * system to return the audio session and will reinstall the tap
153
+ * automatically. Always false when isFatal is true.
154
+ */
155
+ autoResuming: boolean;
143
156
  }
144
157
 
145
158
  export interface Chunk {