Simple Audio Manager  1.0.1
 All Classes Files Functions Enumerations Enumerator Properties Events Pages
Enumerations
AudioOption.cs File Reference

Enumerations

enum  AudioOption : int {
  AudioOption.NONE = 0, AudioOption.MUSIC = 1 << 0, AudioOption.SFX = 1 << 1, AudioOption.VOICE = 1 << 2,
  AudioOption.GLOBAL = 1 << 15, AudioOption.LOOP = 1 << 16, AudioOption.REPLAY = 1 << 17, AudioOption.ONLY_ONE = 1 << 18,
  AudioOption.OVERRIDE = 1 << 19, AudioOption.FOLLOW = 1 << 20, AudioOption.FOLLOW_STOP = 1 << 21, AudioOption.PREVENT_STOP = 1 << 22,
  AudioOption.LIMIT = 1 << 23, AudioOption.PRIORITY = 1 << 24, AudioOption.IGNORE_NULL = 1 << 25
}
 Options with which you can play sound. More...
 

Enumeration Type Documentation

enum AudioOption : int

Options with which you can play sound.

Enumerator
NONE 

None.

MUSIC 

Music group, for example AudioSystem[AudioOption.MUSIC].active = false.

SFX 

Sfx group.

VOICE 

Voice group.

GLOBAL 

Global group, example AudioSystem[AuidoOption.GLOBAL].volume = 0.5f, affected all sounds.

LOOP 

Play cycles until it is stopped.

REPLAY 

When you call the Play (track) track will be played again.

ONLY_ONE 

Do not play sound if Transform target already on a sound option ONLY_ONE.

OVERRIDE 

ONLY_ONE | OVERRIDE will replace the current sound (with optional ONLY_ONE) Transform target a new one.

FOLLOW 

Follow Transform target.

FOLLOW_STOP 

Stop the sound if Transform target is hidden or destroyed.

PREVENT_STOP 

When active = false, instead of stopping the sound is paused.

LIMIT 

Sound will not play sounds if limit (the limit involved in counting only sound option LIMIT)

PRIORITY 

LIMIT | PRIORITY in excess of the limit will try to replace an existing sound but without PRIORITY.

IGNORE_NULL 

If the clip == null does not throw an exception.