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

[Bug]: Android Oboe audio callback onAudioReady() invokes pthread_mutex_lock() #1345

Open
1 task done
atsushieno opened this issue Feb 5, 2024 · 0 comments
Open
1 task done

Comments

@atsushieno
Copy link

Detailed steps on how to reproduce the bug

I found modules/juce_audio_devices/native/juce_Oboe_android.cpp involves pthread_mutex_lock(), which is not realtime safe:

pthread_mutex_lock (&threadReadyMutex);

Some folks are facing weird Oboe audio latency problem with tracktion_engine. Probably this is the cause of the issue.

What is the expected behaviour?

Oboe driver should not involve mutex lock (at least the default Bionic libc implementation is no-go).

Operating systems

Android

What versions of the operating systems?

Android 14 (any version after Android 8.0 should be affected)

Architectures

x86_64, ARM, 64-bit, 32-bit

Stacktrace

No response

Plug-in formats (if applicable)

No response

Plug-in host applications (DAWs) (if applicable)

No response

Testing on the develop branch

The bug is present on the develop branch

Code of Conduct

  • I agree to follow the Code of Conduct
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