Class AudioDucking

Definition

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

Provides the functionalities to control audio ducking.

C#
Copy
public sealed class AudioDucking : IDisposable
Inheritance
AudioDucking

Constructors

View Source

AudioDucking(AudioStreamType)

Initializes a new instance of the AudioDucking class with AudioStreamType.

Declaration
C#
Copy
public AudioDucking(AudioStreamType targetType)
Parameters
Type Name Description
AudioStreamType targetType

The type of sound stream affected by this new instance.

API Level: 6

Properties

View Source

IsDucked

Gets the ducking state of the stream.

Declaration
C#
Copy
public bool IsDucked { get; }
Property Value
Type Description
Boolean

true if the audio stream is ducked; otherwise, false.

API Level: 6

Methods

View Source

Activate(UInt32, Double)

Activate audio ducking

Declaration
C#
Copy
public void Activate(uint duration, double ratio)
Parameters
Type Name Description
UInt32 duration

The duration for ducking in milliseconds.

Double ratio

The volume ratio when ducked.

Remarks

To activate ducking, the specified privilege is required.

API Level: 6
Privilege Level: public
Privilege: http://tizen.org/privilege/volume.set
View Source

Deactivate()

Deactivate audio ducking

Declaration
C#
Copy
public void Deactivate()
Remarks

To deactivate ducking, the specified privilege is required.

API Level: 6
Privilege Level: public
Privilege: http://tizen.org/privilege/volume.set
View Source

Dispose()

Releases all resources used by the AudioDucking.

Declaration
C#
Copy
public void Dispose()
API Level: 6

Events

View Source

DuckingStateChanged

Occurs when the ducking state is changed.

Declaration
C#
Copy
public event EventHandler<AudioDuckingStateChangedEventArgs> DuckingStateChanged
Event Type
Type Description
EventHandler<AudioDuckingStateChangedEventArgs>
API Level: 6

Extension Methods

See Also