Table of Contents

Interface IPlayer

Namespace
Alis.Core.Audio.Interfaces
Assembly
Alis.dll

The player interface

public interface IPlayer

Properties

Paused

Gets the value of the paused

bool Paused { get; }

Property Value

bool

Playing

Gets the value of the playing

bool Playing { get; }

Property Value

bool

Methods

Pause()

Pauses this instance

Task Pause()

Returns

Task

Play(string)

Plays the file name

Task Play(string fileName)

Parameters

fileName string

The file name

Returns

Task

Resume()

Resumes this instance

Task Resume()

Returns

Task

SetVolume(byte)

Sets the volume using the specified percent

Task SetVolume(byte percent)

Parameters

percent byte

The percent

Returns

Task

Stop()

Stops this instance

Task Stop()

Returns

Task

PlaybackFinished

playback

event EventHandler PlaybackFinished

Event Type

EventHandler