Table of Contents

Class UnixPlayerBase

Namespace
Alis.Core.Audio.Players
Assembly
Alis.dll

The unix player base class

public abstract class UnixPlayerBase : IPlayer

Inheritance

Derived

Implements

Inherited Members

Fields

PauseProcessCommand

The pause process command

internal const string PauseProcessCommand = "kill -STOP {0}"

Field Value

string

ResumeProcessCommand

The resume process command

internal const string ResumeProcessCommand = "kill -CONT {0}"

Field Value

string

_process

The process

private Process _process

Field Value

Process

Properties

Paused

Gets or sets the value of the paused

public bool Paused { get; private set; }

Property Value

bool

Playing

Gets or sets the value of the playing

public bool Playing { get; private set; }

Property Value

bool

Methods

GetBashCommand(string)

Gets the bash command using the specified file name

internal abstract string GetBashCommand(string fileName)

Parameters

fileName string

The file name

Returns

string

The string

HandlePlaybackFinished(object, EventArgs)

Handles the playback finished using the specified sender

internal void HandlePlaybackFinished(object sender, EventArgs e)

Parameters

sender object

The sender

e EventArgs

The

Pause()

Pauses this instance

public Task Pause()

Returns

Task

Play(string)

Plays the file name

public Task Play(string fileName)

Parameters

fileName string

The file name

Returns

Task

Resume()

Resumes this instance

public Task Resume()

Returns

Task

SetVolume(byte)

Sets the volume using the specified percent

public abstract Task SetVolume(byte percent)

Parameters

percent byte

The percent

Returns

Task

StartBashProcess(string)

Starts the bash process using the specified command

protected Process StartBashProcess(string command)

Parameters

command string

The command

Returns

Process

The process

Stop()

Stops this instance

public Task Stop()

Returns

Task

PlaybackFinished

Event

public event EventHandler PlaybackFinished

Event Type

EventHandler

See Also