Class WavPlayer

    Definition

    Namespace:
    Tizen.Multimedia
    Assembly:
    Tizen.Multimedia.AudioIO.dll

    Provides the ability to play a wav file.

    public static class WavPlayer
    Inheritance
    object
    WavPlayer

    Methods

    View Source

    StartAsync(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

    A AudioStreamPolicy.

    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
    System.ArgumentNullException

    path is null.

    -or-

    streamPolicy is null.
    System.InvalidOperationException

    An internal error occurs.

    System.IO.FileNotFoundException

    path does not exists.

    FileFormatException

    The format of path is not supported.

    System.ObjectDisposedException

    streamPolicy has already been disposed of.

    View Source

    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

    A AudioStreamPolicy.

    Returns
    Type Description
    System.Threading.Tasks.Task

    A task that represents the asynchronous operation.

    Exceptions
    Type Condition
    System.ArgumentNullException

    path is null.

    -or-

    streamPolicy is null.
    System.InvalidOperationException

    An internal error occurs.

    System.IO.FileNotFoundException

    path does not exists.

    FileFormatException

    The format of path is not supported.

    System.ObjectDisposedException

    streamPolicy has already been disposed of.

    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX