C# Class EzGame.Sound

显示文件 Open project: CodeTreeCommunity/Shooter2D

Public Properties

Property Type Description
Channels Microsoft.Xna.Framework.Audio.SoundEffectInstance[]

Public Methods

Method Description
Get ( string Path ) : SoundEffect
Initialize ( int Channels ) : void
Load ( string Path ) : void
Loop ( ushort Channel, bool Value ) : bool
Looped ( ushort Channel ) : bool?
Pause ( string Path ) : bool
Pause ( ushort Channel ) : bool
Play ( string Path ) : ushort?
Play ( string Path, bool Loop ) : ushort?
Play ( string Path, bool Loop, float Volume ) : ushort?
Stop ( string Path ) : bool
Stop ( ushort Channel ) : bool
Unload ( string Path ) : void
Volume ( ushort Channel, float Value ) : bool
Volume ( ushort Channel ) : float?

Method Details

Get() public static method

public static Get ( string Path ) : SoundEffect
Path string
return Microsoft.Xna.Framework.Audio.SoundEffect

Initialize() public static method

public static Initialize ( int Channels ) : void
Channels int
return void

Load() public static method

public static Load ( string Path ) : void
Path string
return void

Loop() public static method

public static Loop ( ushort Channel, bool Value ) : bool
Channel ushort
Value bool
return bool

Looped() public static method

public static Looped ( ushort Channel ) : bool?
Channel ushort
return bool?

Pause() public static method

public static Pause ( string Path ) : bool
Path string
return bool

Pause() public static method

public static Pause ( ushort Channel ) : bool
Channel ushort
return bool

Play() public static method

public static Play ( string Path ) : ushort?
Path string
return ushort?

Play() public static method

public static Play ( string Path, bool Loop ) : ushort?
Path string
Loop bool
return ushort?

Play() public static method

public static Play ( string Path, bool Loop, float Volume ) : ushort?
Path string
Loop bool
Volume float
return ushort?

Stop() public static method

public static Stop ( string Path ) : bool
Path string
return bool

Stop() public static method

public static Stop ( ushort Channel ) : bool
Channel ushort
return bool

Unload() public static method

public static Unload ( string Path ) : void
Path string
return void

Volume() public static method

public static Volume ( ushort Channel, float Value ) : bool
Channel ushort
Value float
return bool

Volume() public static method

public static Volume ( ushort Channel ) : float?
Channel ushort
return float?

Property Details

Channels public_oe static_oe property

public static SoundEffectInstance[],Microsoft.Xna.Framework.Audio Channels
return Microsoft.Xna.Framework.Audio.SoundEffectInstance[]