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

Sound currently not working #66

Open
cnlohr opened this issue Jul 21, 2023 · 6 comments
Open

Sound currently not working #66

cnlohr opened this issue Jul 21, 2023 · 6 comments

Comments

@cnlohr
Copy link
Owner

cnlohr commented Jul 21, 2023

@DavidVentura, for some reason apps crash when trying to initialize the sound under the current setup. I spent a bit trying to debug it, but I don't understand the code very well. Can you pull the latest everything then uncomment the call here, and see if it crashes for you?

//InitCNFAAndroid( Callback, "A Name", SAMPLE_RATE, 0, 1, 0, SAMPLE_COUNT, 0, 0, 0 );
@cnlohr
Copy link
Owner Author

cnlohr commented Jul 21, 2023

Also, it's currently breaking CI. See this: https://github.com/cnlohr/rawdrawandroid/actions/runs/5626850417/job/15248435884

@DavidVentura
Copy link
Contributor

Interesting, with the current code base, when I re-enable audio, this loop is infinite:

while( !MyWebView.WebViewObject ) usleep(1);

though it's not easy for me to debug, as current master crashes within ~5 seconds on my phone.

Just messing with the code, moving the line

      InitCNFAAndroid( AudioCallback, "A Name", SAMPLE_RATE, 0, 1, 0, SAMPLE_COUNT, 0, 0, 0 );

after

      while( !MyWebView.WebViewObject ) usleep(1);

makes the audio work again. Though, I still crash within 5 seconds.

The failure on the build seems unrelated though, as it's still present when audio is disabled:

https://github.com/cnlohr/rawdrawandroid/actions/runs/5659840530/job/15441189400

@cnlohr
Copy link
Owner Author

cnlohr commented Jul 31, 2023

Ah, I should not rely on webview being a thing. What is your SDK version and what version of Android are you running on?

@DavidVentura
Copy link
Contributor

ndk is 21.3.6528147 and android version is 11

@cnlohr
Copy link
Owner Author

cnlohr commented Aug 3, 2023

Do you know which SDK version you're on?

@DavidVentura
Copy link
Contributor

SDK version is 30

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