Skip to content

Conversation

@eqiihuu
Copy link

@eqiihuu eqiihuu commented Dec 13, 2019

Previously there is a bug in EZAudio: Error: Failed to fill complex buffer in float converter ('insz') when the audio converter is filled with the source buffer, causing the demo app to crash.

We add this fix to solve this issue for Obj-C demo in both simulator and real device. The fix is composed of 2 changes:

  1. In ./examples/iOS/Obj-c/SnowboyTest/ViewController.mm we do the setPreferredSampleRate before setActive;

  2. In examples/iOS/Obj-C/Pods/EZAudio/EZAudio/EZAudioFloatConverter.m, we reset the Audio Converter if AudioConverterFillComplexBuffer fails. (Currently this will continuously reset the AudioConverter in simulator)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant