C# Class Microsoft.Xna.Framework.Audio.DynamicSoundEffectInstance

Inheritance: IDisposable
Exibir arquivo Open project: scemino/nscumm Class Usage Examples

Public Methods

Method Description
Apply3D ( Microsoft.Xna.Framework.Audio.AudioListener listener, Microsoft.Xna.Framework.Audio.AudioEmitter emitter ) : void
Dispose ( ) : void
DynamicSoundEffectInstance ( int sampleRate, AudioChannels channels ) : System
GetSampleDuration ( int sizeInBytes ) : System.TimeSpan
GetSampleSizeInBytes ( System.TimeSpan duration ) : int
Pause ( ) : void
Play ( ) : void
Stop ( ) : void
Stop ( bool immediate ) : void
SubmitBuffer ( byte buffer, int count ) : void
SubmitBuffer ( byte buffer, int offset, int count ) : void

Private Methods

Method Description
BufferFiller ( ) : void
OnBufferNeeded ( EventArgs args ) : void
XnaPitchToAlPitch ( float pitch ) : float

Method Details

Apply3D() public method

public Apply3D ( Microsoft.Xna.Framework.Audio.AudioListener listener, Microsoft.Xna.Framework.Audio.AudioEmitter emitter ) : void
listener Microsoft.Xna.Framework.Audio.AudioListener
emitter Microsoft.Xna.Framework.Audio.AudioEmitter
return void

Dispose() public method

public Dispose ( ) : void
return void

DynamicSoundEffectInstance() public method

public DynamicSoundEffectInstance ( int sampleRate, AudioChannels channels ) : System
sampleRate int
channels AudioChannels
return System

GetSampleDuration() public method

public GetSampleDuration ( int sizeInBytes ) : System.TimeSpan
sizeInBytes int
return System.TimeSpan

GetSampleSizeInBytes() public method

public GetSampleSizeInBytes ( System.TimeSpan duration ) : int
duration System.TimeSpan
return int

Pause() public method

public Pause ( ) : void
return void

Play() public method

public Play ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

Stop() public method

public Stop ( bool immediate ) : void
immediate bool
return void

SubmitBuffer() public method

public SubmitBuffer ( byte buffer, int count ) : void
buffer byte
count int
return void

SubmitBuffer() public method

public SubmitBuffer ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
return void