C# 클래스 Zeplin.Sound

Very basic wrapper for XNA's sound library.
Does not support any type besides SoundEffect right now.
파일 보기 프로젝트 열기: zumpiez/Zeplin

공개 메소드들

메소드 설명
Pause ( ) : void

Pauses the sound.

Play ( ) : void

Plays this sound unless it is already playing.

Play ( float volume, float pitch, float pan, bool loop ) : void

Plays this sound unless it is already playing.

PlayWithoutChecking ( ) : void

Plays this sound even if it is already playing.

A sound played in this way cannot be paused or stopped or otherwise manipulated.

Sound ( string resourceName ) : System

Constructs a Sound object from the specified resource string

Stop ( bool immediate ) : void

Stops the sound.

메소드 상세

Pause() 공개 메소드

Pauses the sound.
public Pause ( ) : void
리턴 void

Play() 공개 메소드

Plays this sound unless it is already playing.
public Play ( ) : void
리턴 void

Play() 공개 메소드

Plays this sound unless it is already playing.
public Play ( float volume, float pitch, float pan, bool loop ) : void
volume float The volume of the sound. Valid values are between 0.0 (silent) and 1.0 (full).
pitch float Pitch adjustment, ranging from -1.0 (one octave down) to 1.0 (one octave up). 0.0 is
pan float Panning, ranging from -1.0 (full left) to 1.0 (full right). 0.0 is centered.
loop bool Whether to continue playing the song indefinitely, until stopped or paused manually, or set to no longer loop.
리턴 void

PlayWithoutChecking() 공개 메소드

Plays this sound even if it is already playing.
A sound played in this way cannot be paused or stopped or otherwise manipulated.
public PlayWithoutChecking ( ) : void
리턴 void

Sound() 공개 메소드

Constructs a Sound object from the specified resource string
public Sound ( string resourceName ) : System
resourceName string The name of a SoundEffect resource
리턴 System

Stop() 공개 메소드

Stops the sound.
public Stop ( bool immediate ) : void
immediate bool Specifies whether to stop playing immediately, or to continue playing until the end of the sound.
리턴 void