Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix the ios13 bug #630

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

fix the ios13 bug #630

wants to merge 2 commits into from

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