Oboe
A library for creating real-time audio apps on Android
Loading...
Searching...
No Matches
oboe::OboeExtensions Class Reference

#include <OboeExtensions.h>

Static Public Member Functions

static bool isMMapSupported ()
 
static bool isMMapEnabled ()
 
static int32_t setMMapEnabled (bool enabled)
 
static bool isMMapUsed (oboe::AudioStream *oboeStream)
 
static bool isPartialDataCallbackSupported ()
 

Detailed Description

The definitions below are only for testing. They are not recommended for use in an application. They may change or be removed at any time.

Member Function Documentation

◆ isMMapEnabled()

static bool oboe::OboeExtensions::isMMapEnabled ( )
static
Returns
true if the AAudio MMAP data path can be selected

◆ isMMapSupported()

static bool oboe::OboeExtensions::isMMapSupported ( )
static
Returns
true if the device supports AAudio MMAP

◆ isMMapUsed()

static bool oboe::OboeExtensions::isMMapUsed ( oboe::AudioStream * oboeStream)
static
Parameters
oboeStream
Returns
true if the AAudio MMAP data path is used on the stream

◆ isPartialDataCallbackSupported()

static bool oboe::OboeExtensions::isPartialDataCallbackSupported ( )
static
Returns
true if partial data callback is supported.

◆ setMMapEnabled()

static int32_t oboe::OboeExtensions::setMMapEnabled ( bool enabled)
static

Controls whether the AAudio MMAP data path can be selected when opening a stream. It has no effect after the stream has been opened. It only affects the application that calls it. Other apps are not affected.

Parameters
enabled
Returns
0 or a negative error code

The documentation for this class was generated from the following file: