|
|
|
@ -94,31 +94,26 @@ audio_flags_mask_t AAudioConvert_allowCapturePolicyToAudioFlagsMask(
|
|
|
|
|
|
|
|
|
|
// Note that this code may be replaced by Settings or by some other system configuration tool.
|
|
|
|
|
|
|
|
|
|
#define AAUDIO_PROP_MMAP_POLICY "aaudio.mmap_policy"
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Read system property.
|
|
|
|
|
* @return AAUDIO_UNSPECIFIED, AAUDIO_POLICY_NEVER or AAUDIO_POLICY_AUTO or AAUDIO_POLICY_ALWAYS
|
|
|
|
|
*/
|
|
|
|
|
int32_t AAudioProperty_getMMapPolicy();
|
|
|
|
|
|
|
|
|
|
#define AAUDIO_PROP_MMAP_EXCLUSIVE_POLICY "aaudio.mmap_exclusive_policy"
|
|
|
|
|
#define AAUDIO_PROP_MMAP_POLICY "aaudio.mmap_policy"
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Read system property.
|
|
|
|
|
* @return AAUDIO_UNSPECIFIED, AAUDIO_POLICY_NEVER or AAUDIO_POLICY_AUTO or AAUDIO_POLICY_ALWAYS
|
|
|
|
|
*/
|
|
|
|
|
int32_t AAudioProperty_getMMapExclusivePolicy();
|
|
|
|
|
|
|
|
|
|
#define AAUDIO_PROP_MIXER_BURSTS "aaudio.mixer_bursts"
|
|
|
|
|
#define AAUDIO_PROP_MMAP_EXCLUSIVE_POLICY "aaudio.mmap_exclusive_policy"
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Read system property.
|
|
|
|
|
* @return number of bursts per AAudio service mixer cycle
|
|
|
|
|
*/
|
|
|
|
|
int32_t AAudioProperty_getMixerBursts();
|
|
|
|
|
|
|
|
|
|
#define AAUDIO_PROP_HW_BURST_MIN_USEC "aaudio.hw_burst_min_usec"
|
|
|
|
|
#define AAUDIO_PROP_MIXER_BURSTS "aaudio.mixer_bursts"
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Read a system property that specifies the number of extra microseconds that a thread
|
|
|
|
@ -130,7 +125,6 @@ int32_t AAudioProperty_getMixerBursts();
|
|
|
|
|
* @return number of microseconds to delay the wakeup.
|
|
|
|
|
*/
|
|
|
|
|
int32_t AAudioProperty_getWakeupDelayMicros();
|
|
|
|
|
|
|
|
|
|
#define AAUDIO_PROP_WAKEUP_DELAY_USEC "aaudio.wakeup_delay_usec"
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -139,7 +133,6 @@ int32_t AAudioProperty_getWakeupDelayMicros();
|
|
|
|
|
* @return minimum number of microseconds to sleep.
|
|
|
|
|
*/
|
|
|
|
|
int32_t AAudioProperty_getMinimumSleepMicros();
|
|
|
|
|
|
|
|
|
|
#define AAUDIO_PROP_MINIMUM_SLEEP_USEC "aaudio.minimum_sleep_usec"
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -153,7 +146,21 @@ int32_t AAudioProperty_getMinimumSleepMicros();
|
|
|
|
|
* @return minimum number of microseconds for a MMAP HW burst
|
|
|
|
|
*/
|
|
|
|
|
int32_t AAudioProperty_getHardwareBurstMinMicros();
|
|
|
|
|
#define AAUDIO_PROP_HW_BURST_MIN_USEC "aaudio.hw_burst_min_usec"
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Read a system property that specifies an offset that will be added to MMAP timestamps.
|
|
|
|
|
* This can be used to correct bias in the timestamp.
|
|
|
|
|
* It can also be used to analyze the time distribution of the timestamp
|
|
|
|
|
* by progressively modifying the offset and listening for glitches.
|
|
|
|
|
*
|
|
|
|
|
* @return number of microseconds to offset the time part of an MMAP timestamp
|
|
|
|
|
*/
|
|
|
|
|
int32_t AAudioProperty_getInputMMapOffsetMicros();
|
|
|
|
|
#define AAUDIO_PROP_INPUT_MMAP_OFFSET_USEC "aaudio.in_mmap_offset_usec"
|
|
|
|
|
|
|
|
|
|
int32_t AAudioProperty_getOutputMMapOffsetMicros();
|
|
|
|
|
#define AAUDIO_PROP_OUTPUT_MMAP_OFFSET_USEC "aaudio.out_mmap_offset_usec"
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Is flush allowed for the given state?
|
|
|
|
|