Class AudioManager

Definition

Namespace:
Tizen.Multimedia
Assembly:
Tizen.Multimedia.dll
API Level:
3

Provides the ability to control volume levels and monitor audio devices.

C#
Copy
public static class AudioManager
Inheritance
AudioManager

Properties

View Source

VolumeController

Gets the volume controller.

Declaration
C#
Copy
public static AudioVolume VolumeController { get; }
Property Value
Type Description
AudioVolume

The AudioVolume.

API Level: 3

Methods

View Source

GetConnectedDevices()

Gets the all devices currently connected.

Declaration
C#
Copy
public static IEnumerable<AudioDevice> GetConnectedDevices()
Returns
Type Description
System.Collections.Generic.IEnumerable<AudioDevice>

An IEnumerable<AudioDevice> that contains connected devices.

API Level: 4

Events

View Source

DeviceConnectionChanged

Occurs when the state of a connection of an audio device changes.

Declaration
C#
Copy
public static event EventHandler<AudioDeviceConnectionChangedEventArgs> DeviceConnectionChanged
Event Type
Type Description
System.EventHandler<AudioDeviceConnectionChangedEventArgs>
API Level: 3
View Source

DeviceRunningChanged

Occurs when the audio stream started actually to run on the device.

Declaration
C#
Copy
public static event EventHandler<AudioDeviceRunningChangedEventArgs> DeviceRunningChanged
Event Type
Type Description
System.EventHandler<AudioDeviceRunningChangedEventArgs>
Remarks

If this event is invoked once and the audio stream is still running on the device,
this event will not be invoked anymore, even if there are more audio streams to run.
This event is invoked only when all streams are stopped and a new stream starts to run.

Exceptions
Type Condition
InvalidOperationException

AudioManager failed to communicate internally or allocate memory.

API Level: 5
View Source

DeviceStateChanged

Occurs when the state of an audio device changes.

Declaration
C#
Copy
[Obsolete("Deprecated since API level 5. Please use the DeviceRunningStateChanged property instead.")] public static event EventHandler<AudioDeviceStateChangedEventArgs> DeviceStateChanged
Event Type
Type Description
System.EventHandler<AudioDeviceStateChangedEventArgs>
API Level: 3