C# Class Fusion.Drivers.Audio.SoundEffect

Inheritance: IDisposable
Exibir arquivo Open project: demiurghg/FusionEngine Class Usage Examples

Public Methods

Method Description
CreateInstance ( ) : SoundEffectInstance

Dispose ( ) : void

FromStream ( Stream stream ) : SoundEffect

Play ( ) : bool

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

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

SoundEffect constructor

Private Methods

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

Method Details

CreateInstance() public method

public CreateInstance ( ) : SoundEffectInstance
return SoundEffectInstance

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 ( AudioDevice device, byte buffer, int offset, int bytesCount, int sampleRate, AudioChannels channels, int loopStart, int loopLength ) : System
device AudioDevice
buffer byte sound data buffer
offset int
bytesCount int
sampleRate int
channels AudioChannels
loopStart int
loopLength int
return System