C# Class Animatroller.Framework.LogicalDevice.AudioPlayer

Inheritance: BaseDevice
Datei anzeigen Open project: HakanL/animatroller Class Usage Examples

Public Methods

Method Description
AudioPlayer ( [ name = "" ) : System
CueFX ( string audioFile ) : AudioPlayer
CueTrack ( string audioFile ) : AudioPlayer
NextBackgroundTrack ( ) : AudioPlayer
PauseBackground ( ) : AudioPlayer
PauseFX ( ) : AudioPlayer
PauseTrack ( ) : AudioPlayer
PlayBackground ( ) : AudioPlayer
PlayEffect ( string audioFile ) : AudioPlayer
PlayEffect ( string audioFile, double volume ) : AudioPlayer
PlayEffect ( string audioFile, double leftVolume, double rightVolume ) : AudioPlayer
PlayNewEffect ( string audioFile ) : AudioPlayer
PlayNewEffect ( string audioFile, double volume ) : AudioPlayer
PlayNewEffect ( string audioFile, double leftVolume, double rightVolume ) : AudioPlayer
PlayTrack ( string audioFile ) : AudioPlayer

Cue and play track

ResumeFX ( ) : AudioPlayer
ResumeTrack ( ) : AudioPlayer
SetBackgroundVolume ( double volume ) : AudioPlayer
SetEffectVolume ( double volume ) : AudioPlayer
SetSilent ( bool silent ) : AudioPlayer
SetTrackVolume ( double volume ) : AudioPlayer

Protected Methods

Method Description
RaiseAudioChanged ( AudioChangedEventArgs command, string audioFile, double leftVolume = null, double rightVolume = null ) : void
RaiseExecuteCommand ( AudioCommandEventArgs command ) : void
RaiseExecuteCommand ( AudioCommandEventArgs command, double value ) : void
UpdateOutput ( ) : void

Private Methods

Method Description
RaiseAudioTrackDone ( ) : void
RaiseAudioTrackStart ( string fileName ) : void

Method Details

AudioPlayer() public method

public AudioPlayer ( [ name = "" ) : System
name [
return System

CueFX() public method

public CueFX ( string audioFile ) : AudioPlayer
audioFile string
return AudioPlayer

CueTrack() public method

public CueTrack ( string audioFile ) : AudioPlayer
audioFile string
return AudioPlayer

NextBackgroundTrack() public method

public NextBackgroundTrack ( ) : AudioPlayer
return AudioPlayer

PauseBackground() public method

public PauseBackground ( ) : AudioPlayer
return AudioPlayer

PauseFX() public method

public PauseFX ( ) : AudioPlayer
return AudioPlayer

PauseTrack() public method

public PauseTrack ( ) : AudioPlayer
return AudioPlayer

PlayBackground() public method

public PlayBackground ( ) : AudioPlayer
return AudioPlayer

PlayEffect() public method

public PlayEffect ( string audioFile ) : AudioPlayer
audioFile string
return AudioPlayer

PlayEffect() public method

public PlayEffect ( string audioFile, double volume ) : AudioPlayer
audioFile string
volume double
return AudioPlayer

PlayEffect() public method

public PlayEffect ( string audioFile, double leftVolume, double rightVolume ) : AudioPlayer
audioFile string
leftVolume double
rightVolume double
return AudioPlayer

PlayNewEffect() public method

public PlayNewEffect ( string audioFile ) : AudioPlayer
audioFile string
return AudioPlayer

PlayNewEffect() public method

public PlayNewEffect ( string audioFile, double volume ) : AudioPlayer
audioFile string
volume double
return AudioPlayer

PlayNewEffect() public method

public PlayNewEffect ( string audioFile, double leftVolume, double rightVolume ) : AudioPlayer
audioFile string
leftVolume double
rightVolume double
return AudioPlayer

PlayTrack() public method

Cue and play track
public PlayTrack ( string audioFile ) : AudioPlayer
audioFile string
return AudioPlayer

RaiseAudioChanged() protected method

protected RaiseAudioChanged ( AudioChangedEventArgs command, string audioFile, double leftVolume = null, double rightVolume = null ) : void
command Animatroller.Framework.LogicalDevice.Event.AudioChangedEventArgs
audioFile string
leftVolume double
rightVolume double
return void

RaiseExecuteCommand() protected method

protected RaiseExecuteCommand ( AudioCommandEventArgs command ) : void
command Animatroller.Framework.LogicalDevice.Event.AudioCommandEventArgs
return void

RaiseExecuteCommand() protected method

protected RaiseExecuteCommand ( AudioCommandEventArgs command, double value ) : void
command Animatroller.Framework.LogicalDevice.Event.AudioCommandEventArgs
value double
return void

ResumeFX() public method

public ResumeFX ( ) : AudioPlayer
return AudioPlayer

ResumeTrack() public method

public ResumeTrack ( ) : AudioPlayer
return AudioPlayer

SetBackgroundVolume() public method

public SetBackgroundVolume ( double volume ) : AudioPlayer
volume double
return AudioPlayer

SetEffectVolume() public method

public SetEffectVolume ( double volume ) : AudioPlayer
volume double
return AudioPlayer

SetSilent() public method

public SetSilent ( bool silent ) : AudioPlayer
silent bool
return AudioPlayer

SetTrackVolume() public method

public SetTrackVolume ( double volume ) : AudioPlayer
volume double
return AudioPlayer

UpdateOutput() protected method

protected UpdateOutput ( ) : void
return void