Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface IAudioManager2

interface IAudioManager2
Extends IAudioManager

Methods

enableAvrcpAbsoluteVolume()

void enableAvrcpAbsoluteVolume(string btAddress)
Enable AVRCP absolute volume. When absolute volume is ON, A2DP output will not have volume attenuation from this system.

Parameters

btAddress
string — Required unique character string to identify the BT device Needs privilege “com.amazon.audio.privilege.settings.control”

disableAvrcpAbsoluteVolume()

void disableAvrcpAbsoluteVolume(string btAddress)
Disable AVRCP absolute volume. When absolute volume is OFF, A2DP output will get volume attenuation applied from this system.

Parameters

btAddress
string — Required unique character string to identify the BT device Needs privilege “com.amazon.audio.privilege.settings.control”

isAvrcpAbsoluteVolumeEnabled()

bool isAvrcpAbsoluteVolumeEnabled(string btAddress)
Check if AVRCP absolute volume is enabled or not.

Parameters

btAddress
string — Required unique character string to identify the BT device

Returns

bool true if AVRCP absolute volume state is enabled, false otherwise

enableUsage()

void enableUsage(AudioUsage* usage)
Set usage enable. Audio with specified usage can be played. Now only notification is supported. When setting other usages, the function will throw a “[com.amazon.apmf.SecurityError]: No Permission” exception.

Parameters

usage
AudioUsage* — Required usage type Needs privilege “com.amazon.audio.privilege.settings.control”

disableUsage()

void disableUsage(AudioUsage* usage)
Set usage disable. Audio with specified usage cannot be played. Now only notification is supported. When setting other usages, the function will throw a “[com.amazon.apmf.SecurityError]: No Permission” exception.

Parameters

usage
AudioUsage* — Required usage type Needs privilege “com.amazon.audio.privilege.settings.control”

isUsageEnabled()

bool isUsageEnabled(AudioUsage* usage)
Check if specified usage audio can be played or not.

Parameters

usage
AudioUsage* — Required usage type

Returns

bool true if usage is enabled, false otherwise

getSupportedRecordConfigurations()

AudioConfig[] getSupportedRecordConfigurations(bool excludeDisconnectedDevice, AudioSource* sourceType)
Query audio pipeline for a list of supported audio configurations for record.

Parameters

excludeDisconnectedDevice
bool — Required returns the configuration for connected devices or supported devices. True means that it returns the configuration for connected devices. False means that it returns the configuration for all supported devices in the configuration files.
sourceType
AudioSource* — Required audio source to query

Returns

AudioConfig[] list of audio record configuraions for the specified audio source.

allocateCustomAudioEffectSession()

u32 allocateCustomAudioEffectSession()
Create unique custom audio session ID for audio effect and audio data client. This ID will be used to associate custom audio effects and audio data clients that will have those effects to be applied on.

Returns

u32 an unique custom audio effect session ID
Last modified on October 29, 2026