C# Class AudioPlayer

Inheritance: MonoBehaviour
ファイルを表示 Open project: LilTsubaki/Les-fragments-d-Erule Class Usage Examples

Public Properties

Property Type Description
_audio UnityEngine.AudioSource
_channelName string
_fadeIn bool
_fadeOut bool
_loopClips bool
_maxPitch float
_minPitch float
_panoramicPosition float
_power float
_randPitch bool

Public Methods

Method Description
FadeIn ( ) : void

Enables the fading in behaviour in Update and disables the fading out.

FadeOut ( ) : void

Enables the fading out behaviour in Update and disables the fading in.

GoToPanoramicPosition ( float newPos ) : void
Looping ( int selfId, string channel, bool randPitch, AudioManager, space, Vector3 pos, float distMin, float distMax ) : void
Start ( ) : void
StopLooping ( bool fade ) : void
Update ( ) : void

Method Details

FadeIn() public method

Enables the fading in behaviour in Update and disables the fading out.
public FadeIn ( ) : void
return void

FadeOut() public method

Enables the fading out behaviour in Update and disables the fading in.
public FadeOut ( ) : void
return void

GoToPanoramicPosition() public method

public GoToPanoramicPosition ( float newPos ) : void
newPos float
return void

Looping() public method

public Looping ( int selfId, string channel, bool randPitch, AudioManager, space, Vector3 pos, float distMin, float distMax ) : void
selfId int
channel string
randPitch bool
space AudioManager,
pos Vector3
distMin float
distMax float
return void

Start() public method

public Start ( ) : void
return void

StopLooping() public method

public StopLooping ( bool fade ) : void
fade bool
return void

Update() public method

public Update ( ) : void
return void

Property Details

_audio public_oe property

The AudioSource to play.
public AudioSource,UnityEngine _audio
return UnityEngine.AudioSource

_channelName public_oe property

The channel of AudioData to be played looping .
public string _channelName
return string

_fadeIn public_oe property

Is the sound being played in ?
public bool _fadeIn
return bool

_fadeOut public_oe property

Is the sound being played out ?
public bool _fadeOut
return bool

_loopClips public_oe property

Does the same clip has to be played looping ?
public bool _loopClips
return bool

_maxPitch public_oe property

public float _maxPitch
return float

_minPitch public_oe property

public float _minPitch
return float

_panoramicPosition public_oe property

Where is the sound played ? -1 left, 1 right.
public float _panoramicPosition
return float

_power public_oe property

The power of the voulme of the sound [0,1].
public float _power
return float

_randPitch public_oe property

public bool _randPitch
return bool