Class WavPlayer
Definition
- Namespace:
- Tizen.Multimedia
- Assembly:
- Tizen.Multimedia.AudioIO.dll
- API Level:
- 3
Provides the ability to play a wav file.
C#Copypublic static class WavPlayer
- Inheritance
-
System.ObjectWavPlayer
Methods
View Source
StartAsync(String, AudioStreamPolicy)
Plays a wav file based on the specified AudioStreamPolicy.
Declaration
C#Copypublic static Task StartAsync(string path, AudioStreamPolicy streamPolicy)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | A file path to play. |
AudioStreamPolicy | streamPolicy |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task that represents the asynchronous operation. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
-or- streamPolicy is null.
|
System.InvalidOperationException | An internal error occurs. |
System.IO.FileNotFoundException |
|
FileFormatException | The format of |
ObjectDisposedException |
|
API Level: 3
View Source
StartAsync(String, AudioStreamPolicy, CancellationToken)
Plays a wav file based on the specified AudioStreamPolicy.
Declaration
C#Copypublic static Task StartAsync(string path, AudioStreamPolicy streamPolicy, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | A file path to play. |
AudioStreamPolicy | streamPolicy | |
System.Threading.CancellationToken | cancellationToken | A cancellation token which can be used to stop. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task that represents the asynchronous operation. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
-or- streamPolicy is null.
|
System.InvalidOperationException | An internal error occurs. |
System.IO.FileNotFoundException |
|
FileFormatException | The format of |
ObjectDisposedException |
|