Corgi Engine v10.1
Loading...
Searching...
No Matches
MoreMountains.Feedbacks.MMF_MMSoundManagerTrackControl Class Reference

This feedback will let you control all sounds playing on a specific track (master, UI, music, sfx), and play, pause, mute, unmute, resume, stop, free them all at once, or set their volume or pitch. You will need a MMSoundManager in your scene for this to work. More...

Inheritance diagram for MoreMountains.Feedbacks.MMF_MMSoundManagerTrackControl:
MoreMountains.Feedbacks.MMF_Feedback

Public Types

enum  ControlModes {
  Mute , UnMute , SetVolume , Pause ,
  Play , Stop , Free , SetPitch
}
 sets the inspector color for this feedback More...

Public Attributes

MMSoundManager.MMSoundManagerTracks Track
 the track to mute/unmute/pause/play/stop/free/etc
MMSoundManagerCustomTrackSO CustomTrack
 if Track is set to Other, the custom track SO to target
ControlModes ControlMode = ControlModes.Pause
 the selected control mode to interact with the track. Free will stop all sounds and return them to the pool
float Volume = 0.5f
 if setting the volume, the volume to assign to the track
float Pitch = 1f
 if setting the pitch, the pitch multiplier to assign to the track (1 is the normal pitch). It multiplies the pitch of every sound playing (or played later) on that track

Static Public Attributes

static bool FeedbackTypeAuthorized = true
 a static bool used to disable all feedbacks of this type at once

Protected Member Functions

override void CustomPlayFeedback (Vector3 position, float feedbacksIntensity=1.0f)
 On play, orders the entire track to follow the specific command, via a MMSoundManager event.

Additional Inherited Members

Detailed Description

This feedback will let you control all sounds playing on a specific track (master, UI, music, sfx), and play, pause, mute, unmute, resume, stop, free them all at once, or set their volume or pitch. You will need a MMSoundManager in your scene for this to work.

Member Enumeration Documentation

◆ ControlModes

sets the inspector color for this feedback

the possible modes you can use to interact with the track. Free will stop all sounds and return them to the pool. SetPitch sets a pitch multiplier applied on top of each sound's own pitch

Enumerator
Mute 
UnMute 
SetVolume 
Pause 
Play 
Stop 
Free 
SetPitch 

Member Function Documentation

◆ CustomPlayFeedback()

override void MoreMountains.Feedbacks.MMF_MMSoundManagerTrackControl.CustomPlayFeedback ( Vector3 position,
float feedbacksIntensity = 1::0f )
protected

On play, orders the entire track to follow the specific command, via a MMSoundManager event.

Parameters
position
feedbacksIntensity

Member Data Documentation

◆ ControlMode

ControlModes MoreMountains.Feedbacks.MMF_MMSoundManagerTrackControl.ControlMode = ControlModes.Pause

the selected control mode to interact with the track. Free will stop all sounds and return them to the pool

◆ CustomTrack

MMSoundManagerCustomTrackSO MoreMountains.Feedbacks.MMF_MMSoundManagerTrackControl.CustomTrack

if Track is set to Other, the custom track SO to target

◆ FeedbackTypeAuthorized

bool MoreMountains.Feedbacks.MMF_MMSoundManagerTrackControl.FeedbackTypeAuthorized = true
static

a static bool used to disable all feedbacks of this type at once

◆ Pitch

float MoreMountains.Feedbacks.MMF_MMSoundManagerTrackControl.Pitch = 1f

if setting the pitch, the pitch multiplier to assign to the track (1 is the normal pitch). It multiplies the pitch of every sound playing (or played later) on that track

◆ Track

MMSoundManager.MMSoundManagerTracks MoreMountains.Feedbacks.MMF_MMSoundManagerTrackControl.Track

the track to mute/unmute/pause/play/stop/free/etc

◆ Volume

float MoreMountains.Feedbacks.MMF_MMSoundManagerTrackControl.Volume = 0.5f

if setting the volume, the volume to assign to the track


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