C# Class OpenRA.Sound

Inheritance: IDisposable
Afficher le fichier Open project: OpenRA/OpenRA Class Usage Examples

Private Properties

Свойство Type Description
LoadSound ISoundSource
Play ISound

Méthodes publiques

Méthode Description
AvailableDevices ( ) : OpenRA.SoundDevice[]
Dispose ( ) : void
Initialize ( ISoundLoader loaders, IReadOnlyFileSystem fileSystem ) : void
MuteAudio ( ) : void
PauseMusic ( ) : void
PauseVideo ( ) : void
Play ( string name ) : ISound
Play ( string name, OpenRA.WPos pos ) : ISound
Play ( string name, OpenRA.WPos pos, float volumeModifier ) : ISound
Play ( string name, float volumeModifier ) : ISound
PlayLooped ( string name ) : ISound
PlayLooped ( string name, OpenRA.WPos pos ) : ISound
PlayMusic ( ) : void
PlayMusic ( OpenRA.GameRules.MusicInfo m ) : void
PlayMusicThen ( OpenRA.GameRules.MusicInfo m, System.Action then ) : void
PlayNotification ( OpenRA.Ruleset rules, Player player, string type, string notification, string variant ) : bool
PlayPredefined ( OpenRA.Ruleset ruleset, Player p, OpenRA.Actor voicedActor, string type, string definition, string variant, bool relative, OpenRA.WPos pos, float volumeModifier, bool attenuateVolume ) : bool
PlayToPlayer ( Player player, string name ) : ISound
PlayToPlayer ( Player player, string name, OpenRA.WPos pos ) : ISound
PlayVideo ( ) : void
PlayVideo ( byte raw, int channels, int sampleBits, int sampleRate ) : void
SetListenerPosition ( OpenRA.WPos position ) : void
Sound ( IPlatform platform, SoundSettings soundSettings ) : System
StopAudio ( ) : void
StopMusic ( ) : void
StopSound ( ISound sound ) : void
StopVideo ( ) : void
Tick ( ) : void
UnmuteAudio ( ) : void

Private Methods

Méthode Description
LoadSound ( ISoundLoader loaders, IReadOnlyFileSystem fileSystem, string filename ) : ISoundSource
Play ( Player player, string name, bool headRelative, OpenRA.WPos pos, float volumeModifier = 1f, bool loop = false ) : ISound

Method Details

AvailableDevices() public méthode

public AvailableDevices ( ) : OpenRA.SoundDevice[]
Résultat OpenRA.SoundDevice[]

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Initialize() public méthode

public Initialize ( ISoundLoader loaders, IReadOnlyFileSystem fileSystem ) : void
loaders ISoundLoader
fileSystem IReadOnlyFileSystem
Résultat void

MuteAudio() public méthode

public MuteAudio ( ) : void
Résultat void

PauseMusic() public méthode

public PauseMusic ( ) : void
Résultat void

PauseVideo() public méthode

public PauseVideo ( ) : void
Résultat void

Play() public méthode

public Play ( string name ) : ISound
name string
Résultat ISound

Play() public méthode

public Play ( string name, OpenRA.WPos pos ) : ISound
name string
pos OpenRA.WPos
Résultat ISound

Play() public méthode

public Play ( string name, OpenRA.WPos pos, float volumeModifier ) : ISound
name string
pos OpenRA.WPos
volumeModifier float
Résultat ISound

Play() public méthode

public Play ( string name, float volumeModifier ) : ISound
name string
volumeModifier float
Résultat ISound

PlayLooped() public méthode

public PlayLooped ( string name ) : ISound
name string
Résultat ISound

PlayLooped() public méthode

public PlayLooped ( string name, OpenRA.WPos pos ) : ISound
name string
pos OpenRA.WPos
Résultat ISound

PlayMusic() public méthode

public PlayMusic ( ) : void
Résultat void

PlayMusic() public méthode

public PlayMusic ( OpenRA.GameRules.MusicInfo m ) : void
m OpenRA.GameRules.MusicInfo
Résultat void

PlayMusicThen() public méthode

public PlayMusicThen ( OpenRA.GameRules.MusicInfo m, System.Action then ) : void
m OpenRA.GameRules.MusicInfo
then System.Action
Résultat void

PlayNotification() public méthode

public PlayNotification ( OpenRA.Ruleset rules, Player player, string type, string notification, string variant ) : bool
rules OpenRA.Ruleset
player Player
type string
notification string
variant string
Résultat bool

PlayPredefined() public méthode

public PlayPredefined ( OpenRA.Ruleset ruleset, Player p, OpenRA.Actor voicedActor, string type, string definition, string variant, bool relative, OpenRA.WPos pos, float volumeModifier, bool attenuateVolume ) : bool
ruleset OpenRA.Ruleset
p Player
voicedActor OpenRA.Actor
type string
definition string
variant string
relative bool
pos OpenRA.WPos
volumeModifier float
attenuateVolume bool
Résultat bool

PlayToPlayer() public méthode

public PlayToPlayer ( Player player, string name ) : ISound
player Player
name string
Résultat ISound

PlayToPlayer() public méthode

public PlayToPlayer ( Player player, string name, OpenRA.WPos pos ) : ISound
player Player
name string
pos OpenRA.WPos
Résultat ISound

PlayVideo() public méthode

public PlayVideo ( ) : void
Résultat void

PlayVideo() public méthode

public PlayVideo ( byte raw, int channels, int sampleBits, int sampleRate ) : void
raw byte
channels int
sampleBits int
sampleRate int
Résultat void

SetListenerPosition() public méthode

public SetListenerPosition ( OpenRA.WPos position ) : void
position OpenRA.WPos
Résultat void

Sound() public méthode

public Sound ( IPlatform platform, SoundSettings soundSettings ) : System
platform IPlatform
soundSettings SoundSettings
Résultat System

StopAudio() public méthode

public StopAudio ( ) : void
Résultat void

StopMusic() public méthode

public StopMusic ( ) : void
Résultat void

StopSound() public méthode

public StopSound ( ISound sound ) : void
sound ISound
Résultat void

StopVideo() public méthode

public StopVideo ( ) : void
Résultat void

Tick() public méthode

public Tick ( ) : void
Résultat void

UnmuteAudio() public méthode

public UnmuteAudio ( ) : void
Résultat void