shogo4405 / HaishinKit.swift

Camera and Microphone streaming library via RTMP and SRT for iOS, macOS, tvOS and visionOS.
BSD 3-Clause "New" or "Revised" License
2.76k stars 612 forks source link

Crash on system audio interrupt #1168

Closed heestand-xyz closed 1 year ago

heestand-xyz commented 1 year ago

Describe the bug

I get a crash (EXC_BAD_ACCESS) on the main branch in file AudioCodec.swift on line 73.

audioConverter.convert(to: buffer, error: &error) { _, status in

To Reproduce

  1. Start a stream
  2. Cause a system audio interrupt

Expected behavior

Recovery from system audio interrupt.

Version

Smartphone info.

Additional context

Screenshots

No response

Relevant log output

No response

shogo4405 commented 1 year ago

Thank you for report!! might be fixed it https://github.com/shogo4405/HaishinKit.swift/commit/50ae37d59cc14d7584241f8f8590fae46f6a0105