C# Class OpenRA.Platforms.Default.OpenAlSoundEngine

Inheritance: ISoundEngine
Datei anzeigen Open project: pchote/OpenRA Class Usage Examples

Public Methods

Method Description
AddSoundSourceFromMemory ( byte data, int channels, int sampleBits, int sampleRate ) : ISoundSource
AvailableDevices ( ) : SoundDevice[]
Dispose ( ) : void
OpenAlSoundEngine ( string deviceName ) : System
PauseSound ( ISound sound, bool paused ) : void
Play2D ( ISoundSource sound, bool loop, bool relative, WPos pos, float volume, bool attenuateVolume ) : ISound
SetAllSoundsPaused ( bool paused ) : void
SetListenerPosition ( WPos position ) : void
SetSoundVolume ( float volume, ISound music, ISound video ) : void
StopAllSounds ( ) : void
StopSound ( ISound sound ) : void

Private Methods

Method Description
Dispose ( bool disposing ) : void
PhysicalDevices ( ) : string[]
QueryDevices ( string label, int type ) : string[]
TryGetSourceFromPool ( uint &source ) : bool

Method Details

AddSoundSourceFromMemory() public method

public AddSoundSourceFromMemory ( byte data, int channels, int sampleBits, int sampleRate ) : ISoundSource
data byte
channels int
sampleBits int
sampleRate int
return ISoundSource

AvailableDevices() public method

public AvailableDevices ( ) : SoundDevice[]
return SoundDevice[]

Dispose() public method

public Dispose ( ) : void
return void

OpenAlSoundEngine() public method

public OpenAlSoundEngine ( string deviceName ) : System
deviceName string
return System

PauseSound() public method

public PauseSound ( ISound sound, bool paused ) : void
sound ISound
paused bool
return void

Play2D() public method

public Play2D ( ISoundSource sound, bool loop, bool relative, WPos pos, float volume, bool attenuateVolume ) : ISound
sound ISoundSource
loop bool
relative bool
pos WPos
volume float
attenuateVolume bool
return ISound

SetAllSoundsPaused() public method

public SetAllSoundsPaused ( bool paused ) : void
paused bool
return void

SetListenerPosition() public method

public SetListenerPosition ( WPos position ) : void
position WPos
return void

SetSoundVolume() public method

public SetSoundVolume ( float volume, ISound music, ISound video ) : void
volume float
music ISound
video ISound
return void

StopAllSounds() public method

public StopAllSounds ( ) : void
return void

StopSound() public method

public StopSound ( ISound sound ) : void
sound ISound
return void