Class TonePlayer
Definition
- Namespace:
- Tizen.Multimedia
- Assembly:
- Tizen.Multimedia.AudioIO.dll
Provides the ability to play a tone.
public static class TonePlayer
- Inheritance
-
objectTone
Player
Methods
View SourceStartAsync(ToneType, AudioStreamPolicy, int, CancellationToken)
Plays a tone, asynchronously.
Declaration
public static Task StartAsync(ToneType tone, AudioStreamPolicy streamPolicy, int durationMilliseconds, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
Tone |
tone | A Tone |
Audio |
streamPolicy | |
int | durationMilliseconds | The tone duration in milliseconds. -1 indicates an infinite duration. |
System. |
cancellationToken | The cancellation token which can be used to stop playing the tone. |
Returns
Type | Description |
---|---|
System. |
A task that represents the asynchronous operation. |
Exceptions
Type | Condition |
---|---|
System. |
|
System. |
|
System. |
|
System. |
Any invalid operations occurred. |
System. |
|
System. |
|
StartAsync(ToneType, AudioStreamPolicy, int)
Plays a tone, asynchronously.
Declaration
public static Task StartAsync(ToneType tone, AudioStreamPolicy streamPolicy, int durationMilliseconds)
Parameters
Type | Name | Description |
---|---|---|
Tone |
tone | A Tone |
Audio |
streamPolicy | |
int | durationMilliseconds | The tone duration in milliseconds. -1 indicates an infinite duration. |
Returns
Type | Description |
---|---|
System. |
A task that represents the asynchronous operation. |
Exceptions
Type | Condition |
---|---|
System. |
|
System. |
|
System. |
|
System. |
Any invalid operations occurred. |
System. |
|
System. |
|