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
Samsu7609 opened this issue Mar 23, 2017 · 5 comments
Open

您好 向您請教 #1

Samsu7609 opened this issue Mar 23, 2017 · 5 comments

Comments

@Samsu7609
Copy link

Samsu7609 commented Mar 23, 2017

您好 我目前也正在接觸Superpowered sdk 也是用在混音的部分
目前遇到一些奇怪的問題 同樣的程式碼在不同手機 有的手機會有破音的現象
例如在Nexus 6P 可以正常運作 但是在OPPO R9s plus 卻會有破音現象
但是如果OPPO R9s plus 插入耳機後 卻又不會破音現象...

Superpowered version 1.0.3
samplerate : 48000 , buffersize : 192

SuperpoweredAndroidAudioIO(samplerate, buffersize, true , true, audioProcessing, this, SL_ANDROID_STREAM_MEDIA, -1, buffersize * 2);

static bool audioProcessing(void *clientdata, short int *audioIO, int numberOfSamples, int samplerate) {
return ((PodbeanRecorder *)clientdata)->process(audioIO, numberOfSamples);
}

目前覺得可能是麥克風的問題(每支手機麥克風數量不同)導致收音時 buffersize不足 破音
當插入耳機 輸入源只有一個麥克風 所以不會破音

ps : 可以提供您的apk 讓我測試看看嗎?

@newbdez33
Copy link
Owner

newbdez33 commented Mar 24, 2017 via email

@Samsu7609
Copy link
Author

Hello Jacky 謝謝您的回答

@Samsu7609
Copy link
Author

Jacky 您有推薦的android 混音的library嗎?

@newbdez33
Copy link
Owner

没有,Android音频方面真没关注过。不过原生上一定会有很多不错的库可以用的吧。Goooood luck!

@Samsu7609
Copy link
Author

Samsu7609 commented Mar 28, 2017 via email

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