Class WavPlayer
Definition
- Namespace:
- Tizen.Multimedia
- Assembly:
- Tizen.Multimedia.AudioIO.dll
Provides the ability to play a wav file.
public static class WavPlayer
- Inheritance
-
objectWavPlayer
Methods
View SourceStartAsync(string, AudioStreamPolicy, CancellationToken)
Plays a wav file based on the specified AudioStreamPolicy.
Declaration
public static Task StartAsync(string path, AudioStreamPolicy streamPolicy, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| string | path | A file path to play. |
| AudioStreamPolicy | streamPolicy | |
| CancellationToken | cancellationToken | A cancellation token which can be used to stop. |
Returns
| Type | Description |
|---|---|
| Task | A task that represents the asynchronous operation. |
Exceptions
| Type | Condition |
|---|---|
| FileFormatException | The format of |
StartAsync(string, AudioStreamPolicy, uint, CancellationToken)
Plays a wav file based on the specified AudioStreamPolicy with given repetition number.
Declaration
public static Task StartAsync(string path, AudioStreamPolicy streamPolicy, uint loopCount, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| string | path | A file path to play. |
| AudioStreamPolicy | streamPolicy | |
| uint | loopCount | A number of repetitions. |
| CancellationToken | cancellationToken | A cancellation token which can be used to stop. |
Returns
| Type | Description |
|---|---|
| Task | A task that represents the asynchronous operation. |
Remarks
If loopCount is 0, it means infinite loops
Exceptions
| Type | Condition |
|---|---|
| FileFormatException | The format of |
StartAsync(string, AudioStreamPolicy)
Plays a wav file based on the specified AudioStreamPolicy.
Declaration
public static Task StartAsync(string path, AudioStreamPolicy streamPolicy)
Parameters
| Type | Name | Description |
|---|---|---|
| string | path | A file path to play. |
| AudioStreamPolicy | streamPolicy |
Returns
| Type | Description |
|---|---|
| Task | A task that represents the asynchronous operation. |
Exceptions
| Type | Condition |
|---|---|
| FileFormatException | The format of |