Class UnixPlayerBase
- Namespace
 - Alis.Core.Audio.Players
 
- Assembly
 - Alis.dll
 
The unix player base class
public abstract class UnixPlayerBase : IPlayerInheritance
Derived
Implements
Inherited Members
Fields
PauseProcessCommand
The pause process command
internal const string PauseProcessCommand = "kill -STOP {0}"Field Value
ResumeProcessCommand
The resume process command
internal const string ResumeProcessCommand = "kill -CONT {0}"Field Value
_process
The process
private Process _processField Value
Properties
Paused
Gets or sets the value of the paused
public bool Paused { get; private set; }Property Value
Playing
Gets or sets the value of the playing
public bool Playing { get; private set; }Property Value
Methods
GetBashCommand(string)
Gets the bash command using the specified file name
internal abstract string GetBashCommand(string fileName)Parameters
fileNamestring- 
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
Pause()
Pauses this instance
public Task Pause()Returns
Play(string)
Plays the file name
public Task Play(string fileName)Parameters
fileNamestring- 
The file name
 
Returns
Resume()
Resumes this instance
public Task Resume()Returns
SetVolume(byte)
Sets the volume using the specified percent
public abstract Task SetVolume(byte percent)Parameters
percentbyte- 
The percent
 
Returns
StartBashProcess(string)
Starts the bash process using the specified command
protected Process StartBashProcess(string command)Parameters
commandstring- 
The command
 
Returns
- Process
 - 
The process
 
Stop()
Stops this instance
public Task Stop()Returns
PlaybackFinished
Event
public event EventHandler PlaybackFinished