C# Class Sharpex2D.Audio.AudioManager

Inheritance: IComponent, IDisposable
ファイルを表示 Open project: ThuCommix/Sharpex2D

Public Methods

Method Description
Dispose ( ) : void

Disposes the object.

Initialize ( AudioSource audioSource ) : void

Initializes the audio manager with the given audio source.

Pause ( ) : void

Pause the current playback.

Play ( ) : void

Plays the specified audio source.

Play ( PlaybackMode playbackMode ) : void

Plays the specified audio source.

Resume ( ) : void

Resumes the current playback.

Seek ( long position ) : void

Seeks to the specified position.

Stop ( ) : void

Stops the current playback.

Private Methods

Method Description
AddEffectGroup ( AudioEffectGroup audioEffectGroup ) : void

Adds an AudioEffectGroup to this instance.

AudioManager ( IAudioInitializer audioInitializer ) : System

Initializes a new AudioManager class.

CreatePropperAudioSource ( string path ) : AudioSource

Creates the propper audio source for this provider.

PlaybackChanged ( object sender, EventArgs e ) : void

Triggered if the playback state changed.

Method Details

Dispose() public method

Disposes the object.
public Dispose ( ) : void
return void

Initialize() public method

Initializes the audio manager with the given audio source.
public Initialize ( AudioSource audioSource ) : void
audioSource AudioSource The AudioSource.
return void

Pause() public method

Pause the current playback.
public Pause ( ) : void
return void

Play() public method

Plays the specified audio source.
public Play ( ) : void
return void

Play() public method

Plays the specified audio source.
public Play ( PlaybackMode playbackMode ) : void
playbackMode PlaybackMode The PlaybackMode.
return void

Resume() public method

Resumes the current playback.
public Resume ( ) : void
return void

Seek() public method

Seeks to the specified position.
public Seek ( long position ) : void
position long The Position.
return void

Stop() public method

Stops the current playback.
public Stop ( ) : void
return void