kAudioConverterErr_HardwareInUse
Returned from the Audioconverterfillcomplexbuffer(_:_:_:_:_:_:) function if the underlying hardware codec has become unavailable, probably due to an audio interruption.
Declaration
var kAudioConverterErr_HardwareInUse: OSStatus { get }Discussion
On receiving this error, your application must stop calling AudioConverterFillComplexBuffer. You can check the value of the kAudioConverterPropertyCanResumeFromInterruption property to determine if the converter you are using can resume processing after an interruption. If so, then wait for an interruption-ended call from Audio Session Services, reactivate the audio session, and finally resume using the codec.
If the converter cannot resume processing after an interruption, then on interruption you must abandon the conversion, re-instantiate the converter, and perform the conversion again.
See Also
Result Codes
kAudioConverterErr_FormatNotSupportedkAudioConverterErr_OperationNotSupportedkAudioConverterErr_PropertyNotSupportedkAudioConverterErr_InvalidInputSizekAudioConverterErr_InvalidOutputSizekAudioConverterErr_UnspecifiedErrorkAudioConverterErr_BadPropertySizeErrorkAudioConverterErr_RequiresPacketDescriptionsErrorkAudioConverterErr_InputSampleRateOutOfRangekAudioConverterErr_OutputSampleRateOutOfRangekAudioConverterErr_NoHardwarePermission