C# 클래스 fliXNA_xbox.FlxSound

상속: FlxBasic
파일 보기 프로젝트 열기: konamicode/fliXNA_xbox 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
amplitude float
amplitudeLeft float
amplitudeRight float
artist string
autoDestroy bool
name string
survive bool
x float
y float

보호된 프로퍼티들

프로퍼티 타입 설명
_fadeInTimer float
_fadeInTotal float
_fadeOutTimer float
_fadeOutTotal float
_followTarget bool
_looped bool
_pan bool
_pauseOnFadeOut bool
_position float
_radius float
_sound Microsoft.Xna.Framework.Audio.SoundEffectInstance
_source FlxObject
_target FlxObject
_volume float
_volumeAdjust float
playCount int
proximitized bool

공개 메소드들

메소드 설명
FlxSound ( ) : System

FlxSound constructor gets all the variables initialized, but NOT ready to play a sound yet.

destroy ( ) : void
fadeIn ( float Seconds ) : void
fadeOut ( float Seconds, bool PauseInstead = false ) : void
getActualVolume ( ) : float
loadEmbedded ( SoundEffect EmbeddedSound, bool Looped = false, bool AutoDestroy = false ) : FlxSound
pause ( ) : void
play ( bool ForceRestart = false ) : void
proximity ( FlxObject Source, FlxObject Target, float Radius ) : FlxSound
resume ( ) : void
stop ( ) : void
update ( ) : void

보호된 메소드들

메소드 설명
createSound ( ) : void

비공개 메소드들

메소드 설명
updateTransform ( ) : void

메소드 상세

FlxSound() 공개 메소드

FlxSound constructor gets all the variables initialized, but NOT ready to play a sound yet.
public FlxSound ( ) : System
리턴 System

createSound() 보호된 메소드

protected createSound ( ) : void
리턴 void

destroy() 공개 메소드

public destroy ( ) : void
리턴 void

fadeIn() 공개 메소드

public fadeIn ( float Seconds ) : void
Seconds float
리턴 void

fadeOut() 공개 메소드

public fadeOut ( float Seconds, bool PauseInstead = false ) : void
Seconds float
PauseInstead bool
리턴 void

getActualVolume() 공개 메소드

public getActualVolume ( ) : float
리턴 float

loadEmbedded() 공개 메소드

public loadEmbedded ( SoundEffect EmbeddedSound, bool Looped = false, bool AutoDestroy = false ) : FlxSound
EmbeddedSound Microsoft.Xna.Framework.Audio.SoundEffect
Looped bool
AutoDestroy bool
리턴 FlxSound

pause() 공개 메소드

public pause ( ) : void
리턴 void

play() 공개 메소드

public play ( bool ForceRestart = false ) : void
ForceRestart bool
리턴 void

proximity() 공개 메소드

public proximity ( FlxObject Source, FlxObject Target, float Radius ) : FlxSound
Source FlxObject
Target FlxObject
Radius float
리턴 FlxSound

resume() 공개 메소드

public resume ( ) : void
리턴 void

stop() 공개 메소드

public stop ( ) : void
리턴 void

update() 공개 메소드

public update ( ) : void
리턴 void

프로퍼티 상세

_fadeInTimer 보호되어 있는 프로퍼티

Internal timer for fading in the sound playback.
protected float _fadeInTimer
리턴 float

_fadeInTotal 보호되어 있는 프로퍼티

Internal helper for fading in sounds.
protected float _fadeInTotal
리턴 float

_fadeOutTimer 보호되어 있는 프로퍼티

Internal tracker used to keep track of requests to fade out the sound playback
protected float _fadeOutTimer
리턴 float

_fadeOutTotal 보호되어 있는 프로퍼티

Internal helper for fading out sounds
protected float _fadeOutTotal
리턴 float

_followTarget 보호되어 있는 프로퍼티

Internal helper for sound proximity. The sound will maintain the same position as the target if true.
protected bool _followTarget
리턴 bool

_looped 보호되어 있는 프로퍼티

Internal tracker for whether the sound is looping or not
protected bool _looped
리턴 bool

_pan 보호되어 있는 프로퍼티

Internal tracker for whether to pan the sound left and right. Defualt is false
protected bool _pan
리턴 bool

_pauseOnFadeOut 보호되어 있는 프로퍼티

Internal flag for whether to pause or stop the sound when its done fading out
protected bool _pauseOnFadeOut
리턴 bool

_position 보호되어 있는 프로퍼티

Internal tracker for the position in runtime of the sound playback
protected float _position
리턴 float

_radius 보호되어 있는 프로퍼티

Internal tracker for maximum effective radius of this sound.
protected float _radius
리턴 float

_sound 보호되어 있는 프로퍼티

Internal tracker for the sound object
protected SoundEffectInstance,Microsoft.Xna.Framework.Audio _sound
리턴 Microsoft.Xna.Framework.Audio.SoundEffectInstance

_source 보호되어 있는 프로퍼티

Internal tracker for sound's source - for proximity and panning
protected FlxObject,fliXNA_xbox _source
리턴 FlxObject

_target 보호되어 있는 프로퍼티

Internal tracker for sound's target - for proximity and panning
protected FlxObject,fliXNA_xbox _target
리턴 FlxObject

_volume 보호되어 있는 프로퍼티

Internal tracker for the volume of the sound
protected float _volume
리턴 float

_volumeAdjust 보호되어 있는 프로퍼티

Internal tracker for total volume adjustment
protected float _volumeAdjust
리턴 float

amplitude 공개적으로 프로퍼티

Stores the average wave amplitude of both stereo channels
public float amplitude
리턴 float

amplitudeLeft 공개적으로 프로퍼티

Amplitude of left stereo channel
public float amplitudeLeft
리턴 float

amplitudeRight 공개적으로 프로퍼티

Amplitude of right stereo channel
public float amplitudeRight
리턴 float

artist 공개적으로 프로퍼티

public string artist
리턴 string

autoDestroy 공개적으로 프로퍼티

Whether to call destroy() when the sound has finished
public bool autoDestroy
리턴 bool

name 공개적으로 프로퍼티

public string name
리턴 string

playCount 보호되어 있는 프로퍼티

protected int playCount
리턴 int

proximitized 보호되어 있는 프로퍼티

Internal tracker to help with proximity
protected bool proximitized
리턴 bool

survive 공개적으로 프로퍼티

Whether or not this sound should be automatically destroyed when you switch states
public bool survive
리턴 bool

x 공개적으로 프로퍼티

X position of this sound in world coordinates. Only matters if you're doing proximity/panning
public float x
리턴 float

y 공개적으로 프로퍼티

Y position of this sound in world coordinates. Only matters if you're doing proximity/panning
public float y
리턴 float