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