C# Class Fusion.Engine.Audio.SoundEffect

Inheritance: IDisposable
显示文件 Open project: demiurghg/FusionEngine Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

FromStream ( Stream stream ) : SoundEffect

Play ( ) : bool

Play ( float volume, float pitch, float pan ) : bool

SoundEffect ( SoundSystem device, byte buffer, int offset, int bytesCount, int sampleRate, AudioChannels channels, int loopStart, int loopLength ) : System

SoundEffect constructor

Private Methods

Method Description
CreateInstance ( ) : SoundEffectInstance

Initialize ( SharpDX.Multimedia.WaveFormat format, byte buffer, int offset, int count, int loopStart, int loopLength ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

FromStream() public static method

public static FromStream ( Stream stream ) : SoundEffect
stream Stream
return SoundEffect

Play() public method

public Play ( ) : bool
return bool

Play() public method

public Play ( float volume, float pitch, float pan ) : bool
volume float
pitch float
pan float
return bool

SoundEffect() public method

SoundEffect constructor
public SoundEffect ( SoundSystem device, byte buffer, int offset, int bytesCount, int sampleRate, AudioChannels channels, int loopStart, int loopLength ) : System
device SoundSystem
buffer byte sound data buffer
offset int
bytesCount int
sampleRate int
channels AudioChannels
loopStart int
loopLength int
return System