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

改为扬声器后只能听到电流 #1

Open
HuaHuaCai opened this issue Dec 4, 2017 · 1 comment
Open

改为扬声器后只能听到电流 #1

HuaHuaCai opened this issue Dec 4, 2017 · 1 comment

Comments

@HuaHuaCai
Copy link

HuaHuaCai commented Dec 4, 2017

请问楼主 将AudioSession 该为 扬声器播放只有噪音是什么情况?

[audioSession setCategory:AVAudioSessionCategoryPlayAndRecord withOptions:AVAudioSessionCategoryOptionDefaultToSpeaker error:&error];


原因是设置为扬声器播放后,buffer 的size 变为20,而默认听筒播放,buffer size 为64 ,不知道为什么会这样

@finnfu
Copy link
Owner

finnfu commented Jan 20, 2018

之前自己调试的时候是用的iphone6,后来发现用iphone6s以上系列就会出问题。
发现是因为这个框架回音消除的问题,每次回调的字节数不一样,现在做了调整,应该已经可以了。
谢谢反馈。

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

No branches or pull requests

2 participants