1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Android: Add missing getAndroidRealtimeThreadFactory implementation

The issue affected projects not depending on juce_audio_devices.
This commit is contained in:
attila 2022-12-16 22:56:00 +01:00
parent edb4ef67e8
commit 0e685a9c5b
2 changed files with 8 additions and 1 deletions

View file

@ -226,7 +226,10 @@ namespace juce
#endif
#else
// No audio library, so no way to create realtime threads.
RealtimeThreadFactory getAndroidRealtimeThreadFactory() { return nullptr; }
namespace juce
{
RealtimeThreadFactory getAndroidRealtimeThreadFactory() { return nullptr; }
}
#endif
#endif

View file

@ -349,6 +349,10 @@ using RealtimeThreadFactory = pthread_t (*) (void* (*entry) (void*), void* userP
// whether OpenSL/Oboe are enabled.
RealtimeThreadFactory getAndroidRealtimeThreadFactory();
#if ! JUCE_MODULE_AVAILABLE_juce_audio_devices
RealtimeThreadFactory getAndroidRealtimeThreadFactory() { return nullptr; }
#endif
extern JavaVM* androidJNIJavaVM;
static auto setPriorityOfThisThread (Thread::Priority p)