Class AudioDucking
Definition
- Namespace:
- Tizen.Multimedia
- Assembly:
- Tizen.Multimedia.dll
- API Level:
- 6
Provides the functionalities to control audio ducking.
C#Copypublic sealed class AudioDucking : IDisposable
- Inheritance
-
AudioDucking
Constructors
View Source
AudioDucking(AudioStreamType)
Initializes a new instance of the AudioDucking class with AudioStreamType.
Declaration
C#Copypublic AudioDucking(AudioStreamType targetType)
Parameters
Type | Name | Description |
---|---|---|
AudioStreamType | targetType | The type of sound stream affected by this new instance. |
API Level: 6
Properties
Declaration
C#Copypublic bool IsDucked { get; }
Property Value
Type | Description |
---|---|
Boolean | true if the audio stream is ducked; otherwise, false. |
API Level: 6
Methods
Declaration
C#Copypublic 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
Declaration
C#Copypublic void Deactivate()
Remarks
To deactivate ducking, the specified privilege is required.
API Level: 6
Privilege Level: public
Privilege: http://tizen.org/privilege/volume.set
Declaration
C#Copypublic void Dispose()
API Level: 6
Events
Declaration
C#Copypublic event EventHandler<AudioDuckingStateChangedEventArgs> DuckingStateChanged
Event Type
Type | Description |
---|---|
EventHandler<AudioDuckingStateChangedEventArgs> |