fix (**) deallocate only when we're sure we've allocated something
Fix #169
The error is solved but if are playing from a list then its stucks on the screen and there is no crash but its stuck in the same
the main crash was in this line " lastDescription.deallocate()"
@Sethi1998 can you provide a little snippet to reproduce the error?
@Sethi1998 can you provide a little snippet to reproduce the error?
there is no error if I have used your methods which you have changed
" if outPacketDescriptions?.pointee == nil { outPacketDescriptions?.pointee = UnsafeMutablePointer<AudioStreamPacketDescription>.allocate(capacity: 1) if let lastDescription = selfAudioConverter.converterDescriptions { lastDescription.deallocate() } } "
@Sethi1998 I've just tried this a few times, the queue is correctly played in iOS 16, can you explain how this is not working for you?