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

Android example #17

Open
DavidVentura opened this issue May 28, 2023 · 3 comments
Open

Android example #17

DavidVentura opened this issue May 28, 2023 · 3 comments

Comments

@DavidVentura
Copy link

DavidVentura commented May 28, 2023

Hi
Could you upload an Android example?
I've attempted to do that by just including cnfa/CNFA.h, but getting dlopen failed: cannot locate symbol "SL_IID_PLAY" and am not entirely sure what it is that I'm missing in my link step.

@DavidVentura
Copy link
Author

DavidVentura commented May 29, 2023

Well, linking OpenSLES and calling InitCNFAAndroid was enough to get audio working, though with the same callback, audio plays ~2x as fast (and pitch is ~2x higher)

Which, after fiddling with the InitCNFAAndroid flags for a bit, I realized it sounds "correct" if I double up the sugBufferSize.
Not sure why.

@cnlohr
Copy link
Member

cnlohr commented May 29, 2023

There's always mysteries in sound like that!

@cnlohr
Copy link
Member

cnlohr commented May 29, 2023

If you can document it a tad that'd be neat.

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