Some shared helpers methods for using the high-performance audio paths on Android devices (OpenSL and Oboe). More...
Functions | |
static int | buffersToQueueForBufferDuration (int nativeBufferSize, int bufferDurationInMs, double sampleRate) noexcept |
static bool | canUseHighPerformanceAudioPath (int nativeBufferSize, int requestedBufferSize, int requestedSampleRate) |
static Array< int > | getAvailableBufferSizes (int nativeBufferSize, Array< double > availableSampleRates) |
static int | getDefaultBufferSize (int nativeBufferSize, double currentSampleRate) |
static int | getMaximumBuffersToEnqueue (int nativeBufferSize, double maximumSampleRate) noexcept |
static int | getMinimumBuffersToEnqueue (int nativeBufferSize, double requestedSampleRate) |
static int | getNativeBufferSizeHint () |
static double | getNativeSampleRate () |
static bool | hasLowLatencyAudioPath () |
static bool | isProAudioDevice () |
Some shared helpers methods for using the high-performance audio paths on Android devices (OpenSL and Oboe).
@tags{Audio}
|
staticnoexcept |
References getMinimumBuffersToEnqueue(), and juce::jmax().
Referenced by getDefaultBufferSize(), and getMaximumBuffersToEnqueue().
|
static |
References getNativeSampleRate(), and isProAudioDevice().
Referenced by getMinimumBuffersToEnqueue().
|
static |
References juce::Array< ElementType, TypeOfCriticalSectionToUse, minimumAllocatedSize >::add(), juce::findMaximum(), getMaximumBuffersToEnqueue(), getMinimumBuffersToEnqueue(), getNativeSampleRate(), juce::Array< ElementType, TypeOfCriticalSectionToUse, minimumAllocatedSize >::getRawDataPointer(), and juce::Array< ElementType, TypeOfCriticalSectionToUse, minimumAllocatedSize >::size().
|
static |
References buffersToQueueForBufferDuration(), and hasLowLatencyAudioPath().
|
staticnoexcept |
References buffersToQueueForBufferDuration(), and juce::jmax().
Referenced by getAvailableBufferSizes().
|
static |
References canUseHighPerformanceAudioPath(), and juce::getAndroidSDKVersion().
Referenced by buffersToQueueForBufferDuration(), and getAvailableBufferSizes().
|
static |
References juce::audioManagerGetProperty(), and juce::String::getIntValue().
|
static |
References juce::audioManagerGetProperty(), and juce::String::getDoubleValue().
Referenced by canUseHighPerformanceAudioPath(), and getAvailableBufferSizes().
|
static |
References juce::androidHasSystemFeature().
Referenced by getDefaultBufferSize().
|
static |