Closed dustin-kl closed 4 months ago
My app occasionally crashes when using the audio player.
It throws an "EXC_BAD_ACCESS" in the following function.
func parseData(_ data: Data) { guard let audioStreamID = audioStreamID else { print("audioStreamID is nil") return } guard !data.isEmpty else { print("Data is empty") return } data.withUnsafeBytes { pointer in guard let baseAddress = pointer.baseAddress else { return } AudioFileStreamParseBytes(audioStreamID, UInt32(data.count), baseAddress, []) } }
More specifically it happens in this line
AudioFileStreamParseBytes(audioStreamID, UInt32(data.count), baseAddress, [])
Fixed in 1.0.2
Amazing!
My app occasionally crashes when using the audio player.
It throws an "EXC_BAD_ACCESS" in the following function.
More specifically it happens in this line
AudioFileStreamParseBytes(audioStreamID, UInt32(data.count), baseAddress, [])