Highroad Engine v1.3
Public Attributes | Properties | List of all members
MoreMountains.Tools.MMSoundManagerPlayOptions Struct Reference

A class used to store options for MMSoundManager play More...

Public Attributes

MMSoundManager.MMSoundManagerTracks MmSoundManagerTrack
 the track on which to play the sound More...
 
Vector3 Location
 the location at which to position the sound More...
 
bool Loop
 whether or not the sound should loop More...
 
float Volume
 the volume at which to play the sound More...
 
int ID
 the ID of the sound, useful to find that sound again later More...
 
bool Fade
 whether or not to fade the sound when playing it More...
 
float FadeInitialVolume
 the initial volume of the sound, before the fade More...
 
float FadeDuration
 the duration of the fade, in seconds More...
 
MMTweenType FadeTween
 the tween to use when fading the sound More...
 
bool Persistent
 whether or not the sound should persist over scene transitions More...
 
AudioSource RecycleAudioSource
 an AudioSource to use if you don't want to pick one from the pool More...
 
AudioMixerGroup AudioGroup
 an audiogroup to use if you don't want to play on any of the preset tracks More...
 
float Pitch
 The pitch of the audio source. More...
 
float PlaybackTime
 The time (in seconds) at which to play the sound. More...
 
float PanStereo
 Pans a playing sound in a stereo way (left or right). This only applies to sounds that are Mono or Stereo. More...
 
float SpatialBlend
 Sets how much this AudioSource is affected by 3D spatialisation calculations (attenuation, doppler etc). 0.0 makes the sound full 2D, 1.0 makes it full 3D. More...
 
bool SoloSingleTrack
 whether or not this sound should play in solo mode over its destination track. If yes, all other sounds on that track will be muted when this sound starts playing More...
 
bool SoloAllTracks
 whether or not this sound should play in solo mode over all other tracks. If yes, all other tracks will be muted when this sound starts playing More...
 
bool AutoUnSoloOnEnd
 if in any of the solo modes, AutoUnSoloOnEnd will unmute the track(s) automatically once that sound stops playing More...
 
bool BypassEffects
 Bypass effects (Applied from filter components or global listener filters). More...
 
bool BypassListenerEffects
 When set global effects on the AudioListener will not be applied to the audio signal generated by the AudioSource. Does not apply if the AudioSource is playing into a mixer group. More...
 
bool BypassReverbZones
 When set doesn't route the signal from an AudioSource into the global reverb associated with reverb zones. More...
 
int Priority
 Sets the priority of the AudioSource. More...
 
float ReverbZoneMix
 The amount by which the signal from the AudioSource will be mixed into the global reverb associated with the Reverb Zones. More...
 
float DopplerLevel
 Sets the Doppler scale for this AudioSource. More...
 
int Spread
 Sets the spread angle (in degrees) of a 3d stereo or multichannel sound in speaker space. More...
 
AudioRolloffMode RolloffMode
 Sets/Gets how the AudioSource attenuates over distance. More...
 
float MinDistance
 Within the Min distance the AudioSource will cease to grow louder in volume. More...
 
float MaxDistance
 (Logarithmic rolloff) MaxDistance is the distance a sound stops attenuating at. More...
 
bool DoNotAutoRecycleIfNotDonePlaying
 Whether or not the source should be auto recycled if not done playing. More...
 

Properties

static MMSoundManagerPlayOptions Default [get]
 A default set of options, meant to suit most common cases. When using options, it's a good idea to start with that and override only what you need to. More...
 

Detailed Description

A class used to store options for MMSoundManager play

Member Data Documentation

◆ AudioGroup

AudioMixerGroup MoreMountains.Tools.MMSoundManagerPlayOptions.AudioGroup

an audiogroup to use if you don't want to play on any of the preset tracks

◆ AutoUnSoloOnEnd

bool MoreMountains.Tools.MMSoundManagerPlayOptions.AutoUnSoloOnEnd

if in any of the solo modes, AutoUnSoloOnEnd will unmute the track(s) automatically once that sound stops playing

◆ BypassEffects

bool MoreMountains.Tools.MMSoundManagerPlayOptions.BypassEffects

Bypass effects (Applied from filter components or global listener filters).

◆ BypassListenerEffects

bool MoreMountains.Tools.MMSoundManagerPlayOptions.BypassListenerEffects

When set global effects on the AudioListener will not be applied to the audio signal generated by the AudioSource. Does not apply if the AudioSource is playing into a mixer group.

◆ BypassReverbZones

bool MoreMountains.Tools.MMSoundManagerPlayOptions.BypassReverbZones

When set doesn't route the signal from an AudioSource into the global reverb associated with reverb zones.

◆ DoNotAutoRecycleIfNotDonePlaying

bool MoreMountains.Tools.MMSoundManagerPlayOptions.DoNotAutoRecycleIfNotDonePlaying

Whether or not the source should be auto recycled if not done playing.

◆ DopplerLevel

float MoreMountains.Tools.MMSoundManagerPlayOptions.DopplerLevel

Sets the Doppler scale for this AudioSource.

◆ Fade

bool MoreMountains.Tools.MMSoundManagerPlayOptions.Fade

whether or not to fade the sound when playing it

◆ FadeDuration

float MoreMountains.Tools.MMSoundManagerPlayOptions.FadeDuration

the duration of the fade, in seconds

◆ FadeInitialVolume

float MoreMountains.Tools.MMSoundManagerPlayOptions.FadeInitialVolume

the initial volume of the sound, before the fade

◆ FadeTween

MMTweenType MoreMountains.Tools.MMSoundManagerPlayOptions.FadeTween

the tween to use when fading the sound

◆ ID

int MoreMountains.Tools.MMSoundManagerPlayOptions.ID

the ID of the sound, useful to find that sound again later

◆ Location

Vector3 MoreMountains.Tools.MMSoundManagerPlayOptions.Location

the location at which to position the sound

◆ Loop

bool MoreMountains.Tools.MMSoundManagerPlayOptions.Loop

whether or not the sound should loop

◆ MaxDistance

float MoreMountains.Tools.MMSoundManagerPlayOptions.MaxDistance

(Logarithmic rolloff) MaxDistance is the distance a sound stops attenuating at.

◆ MinDistance

float MoreMountains.Tools.MMSoundManagerPlayOptions.MinDistance

Within the Min distance the AudioSource will cease to grow louder in volume.

◆ MmSoundManagerTrack

MMSoundManager.MMSoundManagerTracks MoreMountains.Tools.MMSoundManagerPlayOptions.MmSoundManagerTrack

the track on which to play the sound

◆ PanStereo

float MoreMountains.Tools.MMSoundManagerPlayOptions.PanStereo

Pans a playing sound in a stereo way (left or right). This only applies to sounds that are Mono or Stereo.

◆ Persistent

bool MoreMountains.Tools.MMSoundManagerPlayOptions.Persistent

whether or not the sound should persist over scene transitions

◆ Pitch

float MoreMountains.Tools.MMSoundManagerPlayOptions.Pitch

The pitch of the audio source.

◆ PlaybackTime

float MoreMountains.Tools.MMSoundManagerPlayOptions.PlaybackTime

The time (in seconds) at which to play the sound.

◆ Priority

int MoreMountains.Tools.MMSoundManagerPlayOptions.Priority

Sets the priority of the AudioSource.

◆ RecycleAudioSource

AudioSource MoreMountains.Tools.MMSoundManagerPlayOptions.RecycleAudioSource

an AudioSource to use if you don't want to pick one from the pool

◆ ReverbZoneMix

float MoreMountains.Tools.MMSoundManagerPlayOptions.ReverbZoneMix

The amount by which the signal from the AudioSource will be mixed into the global reverb associated with the Reverb Zones.

◆ RolloffMode

AudioRolloffMode MoreMountains.Tools.MMSoundManagerPlayOptions.RolloffMode

Sets/Gets how the AudioSource attenuates over distance.

◆ SoloAllTracks

bool MoreMountains.Tools.MMSoundManagerPlayOptions.SoloAllTracks

whether or not this sound should play in solo mode over all other tracks. If yes, all other tracks will be muted when this sound starts playing

◆ SoloSingleTrack

bool MoreMountains.Tools.MMSoundManagerPlayOptions.SoloSingleTrack

whether or not this sound should play in solo mode over its destination track. If yes, all other sounds on that track will be muted when this sound starts playing

◆ SpatialBlend

float MoreMountains.Tools.MMSoundManagerPlayOptions.SpatialBlend

Sets how much this AudioSource is affected by 3D spatialisation calculations (attenuation, doppler etc). 0.0 makes the sound full 2D, 1.0 makes it full 3D.

◆ Spread

int MoreMountains.Tools.MMSoundManagerPlayOptions.Spread

Sets the spread angle (in degrees) of a 3d stereo or multichannel sound in speaker space.

◆ Volume

float MoreMountains.Tools.MMSoundManagerPlayOptions.Volume

the volume at which to play the sound

Property Documentation

◆ Default

MMSoundManagerPlayOptions MoreMountains.Tools.MMSoundManagerPlayOptions.Default
staticget

A default set of options, meant to suit most common cases. When using options, it's a good idea to start with that and override only what you need to.

Example :

MMSoundManagerPlayOptions options = MMSoundManagerPlayOptions.Default; options.Loop = Loop; options.Location = Vector3.zero; options.MmSoundManagerTrack = MMSoundManager.MMSoundManagerTracks.Music;

MMSoundManagerSoundPlayEvent.Trigger(SoundClip, options);

Here we initialize a new local options set, override its loop, location and track settings, and call a play event using it


The documentation for this struct was generated from the following file: