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

如何配合Exoplayer使用》? #18

Open
LinMuSongzi opened this issue Jan 6, 2023 · 1 comment
Open

如何配合Exoplayer使用》? #18

LinMuSongzi opened this issue Jan 6, 2023 · 1 comment

Comments

@LinMuSongzi
Copy link

image
1,不知道我写的对不对。但是思路应该是这样的。
2,exoplayer播放器每次回调的数据观测是 0.1s的pcm 采样数据。比如采样率44100 双通道wav文件。inputByteBuffer会返回 长度 44100162/8/10 = 17640 长度的字节数组,约17.22kb。demo里的min bytes 是7056,是44100162/8 的 1/25 等于 0.04s的音频帧字节数据。那么exoplayer 这里使用api haeEqualizerStream.applyPcmData(pcmData) , 是不是不正确?
3,想知道haeEqualizerStream.applyPcmData(pcmData) 。这个api处理pcm数据是有对应的根据的吗?
4,如果我的理解错误请大佬解惑下~~~

@xuxiapu
Copy link
Contributor

xuxiapu commented Jan 12, 2023

尊敬的开发者,您好,
我们SDK本身提供了huaweiAudioEditor这个类,可以用作播放器,如果您想要在exoplayer里面播放,pcm数据长度无法对齐的话,可以多处理几帧做拼接,haeEqualizerStream.applyPcmData()接口不限制输入的大小,只是我们当前是按照40ms采样的。

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