C# 클래스 OpenRA.Sound

상속: IDisposable
파일 보기 프로젝트 열기: OpenRA/OpenRA 1 사용 예제들

Private Properties

프로퍼티 타입 설명
LoadSound ISoundSource
Play ISound

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

AvailableDevices() 공개 메소드

public AvailableDevices ( ) : OpenRA.SoundDevice[]
리턴 OpenRA.SoundDevice[]

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Initialize() 공개 메소드

public Initialize ( ISoundLoader loaders, IReadOnlyFileSystem fileSystem ) : void
loaders ISoundLoader
fileSystem IReadOnlyFileSystem
리턴 void

MuteAudio() 공개 메소드

public MuteAudio ( ) : void
리턴 void

PauseMusic() 공개 메소드

public PauseMusic ( ) : void
리턴 void

PauseVideo() 공개 메소드

public PauseVideo ( ) : void
리턴 void

Play() 공개 메소드

public Play ( string name ) : ISound
name string
리턴 ISound

Play() 공개 메소드

public Play ( string name, OpenRA.WPos pos ) : ISound
name string
pos OpenRA.WPos
리턴 ISound

Play() 공개 메소드

public Play ( string name, OpenRA.WPos pos, float volumeModifier ) : ISound
name string
pos OpenRA.WPos
volumeModifier float
리턴 ISound

Play() 공개 메소드

public Play ( string name, float volumeModifier ) : ISound
name string
volumeModifier float
리턴 ISound

PlayLooped() 공개 메소드

public PlayLooped ( string name ) : ISound
name string
리턴 ISound

PlayLooped() 공개 메소드

public PlayLooped ( string name, OpenRA.WPos pos ) : ISound
name string
pos OpenRA.WPos
리턴 ISound

PlayMusic() 공개 메소드

public PlayMusic ( ) : void
리턴 void

PlayMusic() 공개 메소드

public PlayMusic ( OpenRA.GameRules.MusicInfo m ) : void
m OpenRA.GameRules.MusicInfo
리턴 void

PlayMusicThen() 공개 메소드

public PlayMusicThen ( OpenRA.GameRules.MusicInfo m, System.Action then ) : void
m OpenRA.GameRules.MusicInfo
then System.Action
리턴 void

PlayNotification() 공개 메소드

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
리턴 bool

PlayPredefined() 공개 메소드

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
리턴 bool

PlayToPlayer() 공개 메소드

public PlayToPlayer ( Player player, string name ) : ISound
player Player
name string
리턴 ISound

PlayToPlayer() 공개 메소드

public PlayToPlayer ( Player player, string name, OpenRA.WPos pos ) : ISound
player Player
name string
pos OpenRA.WPos
리턴 ISound

PlayVideo() 공개 메소드

public PlayVideo ( ) : void
리턴 void

PlayVideo() 공개 메소드

public PlayVideo ( byte raw, int channels, int sampleBits, int sampleRate ) : void
raw byte
channels int
sampleBits int
sampleRate int
리턴 void

SetListenerPosition() 공개 메소드

public SetListenerPosition ( OpenRA.WPos position ) : void
position OpenRA.WPos
리턴 void

Sound() 공개 메소드

public Sound ( IPlatform platform, SoundSettings soundSettings ) : System
platform IPlatform
soundSettings SoundSettings
리턴 System

StopAudio() 공개 메소드

public StopAudio ( ) : void
리턴 void

StopMusic() 공개 메소드

public StopMusic ( ) : void
리턴 void

StopSound() 공개 메소드

public StopSound ( ISound sound ) : void
sound ISound
리턴 void

StopVideo() 공개 메소드

public StopVideo ( ) : void
리턴 void

Tick() 공개 메소드

public Tick ( ) : void
리턴 void

UnmuteAudio() 공개 메소드

public UnmuteAudio ( ) : void
리턴 void