react-native-mp3-player 1.0.1 → 1.0.2

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.
@@ -86,12 +86,12 @@ extension AVPlayerWrapper {
86
86
 
87
87
 
88
88
  // https://stackoverflow.com/questions/79679383/unmanaged-object-pointer-build-issues-in-xcode-26-beta
89
- // XCode 26 sdk change
90
- var tapRef: MTAudioProcessingTap?
89
+ // Xcode 16+ / 26 SDK: tapOut expects Unmanaged<MTAudioProcessingTap>? (API returns retained CF object).
90
+ var tapRef: Unmanaged<MTAudioProcessingTap>?
91
91
  let error = MTAudioProcessingTapCreate(kCFAllocatorDefault, &callbacks, kMTAudioProcessingTapCreationFlag_PreEffects, &tapRef)
92
92
  assert(error == noErr)
93
93
 
94
- params.audioTapProcessor = tapRef
94
+ params.audioTapProcessor = tapRef?.takeRetainedValue()
95
95
 
96
96
  audioMix.inputParameters = [params]
97
97
  item.audioMix = audioMix
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-mp3-player",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "React Native audio player with reliable iOS background playback. Media controls, queue, hooks. Built for stability and long-running playback.",
5
5
  "main": "lib/src/index.js",
6
6
  "types": "lib/src/index.d.ts",