C# 클래스 SFML.Audio.Sound

Regular sound that can be played in the audio environment
상속: SFML.System.ObjectBase
파일 보기 프로젝트 열기: SFML/SFML.Net 1 사용 예제들

공개 메소드들

메소드 설명
Pause ( ) : void

Pause the sound. This function pauses the sound if it was playing, otherwise (sound already paused or stopped) it has no effect.

Play ( ) : void

Start or resume playing the sound. This function starts the stream if it was stopped, resumes it if it was paused, and restarts it from beginning if it was it already playing. This function uses its own thread so that it doesn't block the rest of the program while the sound is played.

Sound ( ) : System

Default constructor (invalid sound)

Sound ( Sound copy ) : System

Construct the sound from another source

Sound ( SoundBuffer buffer ) : System

Construct the sound with a buffer

Stop ( ) : void

Stop playing the sound. This function stops the sound if it was playing or paused, and does nothing if it was already stopped. It also resets the playing position (unlike pause()).

ToString ( ) : string

Provide a string describing the object

보호된 메소드들

메소드 설명
Destroy ( bool disposing ) : void

Handle the destruction of the object

비공개 메소드들

메소드 설명
sfSound_copy ( IntPtr Sound ) : IntPtr
sfSound_create ( ) : IntPtr
sfSound_destroy ( IntPtr Sound ) : void
sfSound_getAttenuation ( IntPtr Sound ) : float
sfSound_getBuffer ( IntPtr Sound ) : IntPtr
sfSound_getLoop ( IntPtr Sound ) : bool
sfSound_getMinDistance ( IntPtr Sound ) : float
sfSound_getPitch ( IntPtr Sound ) : float
sfSound_getPlayingOffset ( IntPtr Sound ) : Time
sfSound_getPosition ( IntPtr Sound ) : Vector3f
sfSound_getStatus ( IntPtr Sound ) : SoundStatus
sfSound_getVolume ( IntPtr Sound ) : float
sfSound_isRelativeToListener ( IntPtr Sound ) : bool
sfSound_pause ( IntPtr Sound ) : void
sfSound_play ( IntPtr Sound ) : void
sfSound_setAttenuation ( IntPtr Sound, float Attenuation ) : void
sfSound_setBuffer ( IntPtr Sound, IntPtr Buffer ) : void
sfSound_setLoop ( IntPtr Sound, bool Loop ) : void
sfSound_setMinDistance ( IntPtr Sound, float MinDistance ) : void
sfSound_setPitch ( IntPtr Sound, float Pitch ) : void
sfSound_setPlayingOffset ( IntPtr Sound, Time TimeOffset ) : void
sfSound_setPosition ( IntPtr Sound, Vector3f position ) : void
sfSound_setRelativeToListener ( IntPtr Sound, bool Relative ) : void
sfSound_setVolume ( IntPtr Sound, float Volume ) : void
sfSound_stop ( IntPtr Sound ) : void

메소드 상세

Destroy() 보호된 메소드

Handle the destruction of the object
protected Destroy ( bool disposing ) : void
disposing bool Is the GC disposing the object, or is it an explicit call ?
리턴 void

Pause() 공개 메소드

Pause the sound. This function pauses the sound if it was playing, otherwise (sound already paused or stopped) it has no effect.
public Pause ( ) : void
리턴 void

Play() 공개 메소드

Start or resume playing the sound. This function starts the stream if it was stopped, resumes it if it was paused, and restarts it from beginning if it was it already playing. This function uses its own thread so that it doesn't block the rest of the program while the sound is played.
public Play ( ) : void
리턴 void

Sound() 공개 메소드

Default constructor (invalid sound)
public Sound ( ) : System
리턴 System

Sound() 공개 메소드

Construct the sound from another source
public Sound ( Sound copy ) : System
copy Sound Sound to copy
리턴 System

Sound() 공개 메소드

Construct the sound with a buffer
public Sound ( SoundBuffer buffer ) : System
buffer SoundBuffer Sound buffer containing the audio data to play with the sound
리턴 System

Stop() 공개 메소드

Stop playing the sound. This function stops the sound if it was playing or paused, and does nothing if it was already stopped. It also resets the playing position (unlike pause()).
public Stop ( ) : void
리턴 void

ToString() 공개 메소드

Provide a string describing the object
public ToString ( ) : string
리턴 string