react-native-mp3-player 1.1.0 → 1.1.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.
@@ -84,14 +84,13 @@ extension AVPlayerWrapper {
84
84
  audioTap.process(numberOfFrames: numberFrames, buffer: UnsafeMutableAudioBufferListPointer(bufferListInOut))
85
85
  }
86
86
 
87
-
88
- // Xcode 26+: MTAudioProcessingTapCreate tapOut is imported as UnsafeMutablePointer<MTAudioProcessingTap?>
89
- // (managed), so use MTAudioProcessingTap? and do not use Unmanaged/takeRetainedValue().
90
- var tapRef: MTAudioProcessingTap?
87
+ // Newer Xcode / SDK versions import MTAudioProcessingTapCreate’s tap out-parameter as
88
+ // UnsafeMutablePointer<Unmanaged<MTAudioProcessingTap>?>; AudioToolbox returns a +1 retained tap.
89
+ var tapRef: Unmanaged<MTAudioProcessingTap>?
91
90
  let error = MTAudioProcessingTapCreate(kCFAllocatorDefault, &callbacks, kMTAudioProcessingTapCreationFlag_PreEffects, &tapRef)
92
91
  assert(error == noErr)
93
92
 
94
- params.audioTapProcessor = tapRef
93
+ params.audioTapProcessor = tapRef?.takeRetainedValue()
95
94
 
96
95
  audioMix.inputParameters = [params]
97
96
  item.audioMix = audioMix
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-mp3-player",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
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",