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

setRecordFftDataListener不回调 #52

Open
xiaolanbuzaiaixinyi opened this issue Nov 25, 2020 · 0 comments
Open

setRecordFftDataListener不回调 #52

xiaolanbuzaiaixinyi opened this issue Nov 25, 2020 · 0 comments

Comments

@xiaolanbuzaiaixinyi
Copy link

我在录音的时候出现不回调,看来下你的源码,发现setRecordFftDataListener不回调的原因是
recordManager.setRecordDataListener(data -> {
Log.e("TAG", "data长度:" + data.length);
Log.e("TAG", "data::" + getFloat(data));
});
长度都是640 没有大于某个值就不回调,我再看了下返回的byte数组 全是-127之类的 基本没啥变化,是我使用的方式不对么?因为我需要用到音频的数据,所以把你这些监听全打印出来,但是好想数据是有问题的。

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

1 participant