Master Audio - AAA Sound Solution!
v2022
The ultimate AAA audio config tool
|
This class contains extension methods so you can call some Master Audio methods with less parameters directly from the Transform object. More...
Static Public Member Functions | |
static void | FadeOutSoundGroupOfTransform (this Transform sourceTrans, string sType, float fadeTime) |
This method allows you to fade out all sounds of a particular Sound Group triggered by or following a Transform for X seconds. More... | |
static List< SoundGroupVariation > | GetAllPlayingVariationsOfTransform (this Transform sourceTrans) |
This will return a list of all playing Variations of a Transform More... | |
static bool | PlaySound3DAtTransformAndForget (this Transform sourceTrans, string sType, float volumePercentage=1f, float?pitch=null, float delaySoundTime=0f, string variationName=null) |
This method allows you to play a sound in a Sound Group from a specific position - the position of a Transform you pass in. Returns bool indicating success (played) or not. More... | |
static PlaySoundResult | PlaySound3DAtTransform (this Transform sourceTrans, string sType, float volumePercentage=1f, float?pitch=null, float delaySoundTime=0f, string variationName=null) |
This method allows you to play a sound in a Sound Group from a specific position - the position of a Transform you pass in. More... | |
static bool | PlaySound3DFollowTransformAndForget (this Transform sourceTrans, string sType, float volumePercentage=1f, float?pitch=null, float delaySoundTime=0f, string variationName=null) |
This method allows you to play a sound in a Sound Group from a specific position - a Transform you pass in. Returns bool indicating success (played) or not. More... | |
static PlaySoundResult | PlaySound3DFollowTransform (this Transform sourceTrans, string sType, float volumePercentage=1f, float?pitch=null, float delaySoundTime=0f, string variationName=null) |
This method allows you to play a sound in a Sound Group from a specific position - a Transform you pass in, and it will follow the Transform if it moves. Returns a PlaySoundResult. More... | |
static IEnumerator | PlaySound3DAtTransformAndWaitUntilFinished (this Transform sourceTrans, string sType, float volumePercentage=1f, float?pitch=null, float delaySoundTime=0f, string variationName=null, double?timeToSchedulePlay=null, System.Action completedAction=null) |
This method allows you to play a sound in a Sound Group from a specific position - a Transform you pass in. This method will not return until the sound is finished (or cannot play) to continue execution. You need to call this with StartCoroutine. The sound will not be played looped, since that could cause a Coroutine that would never end. More... | |
static IEnumerator | PlaySound3DFollowTransformAndWaitUntilFinished (this Transform sourceTrans, string sType, float volumePercentage=1f, float?pitch=null, float delaySoundTime=0f, string variationName=null, double?timeToSchedulePlay=null, System.Action completedAction=null) |
This method allows you to play a sound in a Sound Group from a specific position - a Transform you pass in, and it will follow the Transform if it moves. This method will not return until the sound is finished (or cannot play) to continue execution. You need to call this with StartCoroutine. The sound will not be played looped, since that could cause a Coroutine that would never end. More... | |
static void | PauseAllSoundsOfTransform (Transform sourceTrans) |
This method allows you to pause all sounds triggered by or following a Transform. More... | |
static void | PauseBusOfTransform (this Transform sourceTrans, string busName) |
This method allows you to pause all sounds of a particular Bus triggered by or following a Transform More... | |
static void | PauseSoundGroupOfTransform (this Transform sourceTrans, string sType) |
This method allows you to pause all sounds of a particular Sound Group triggered by or following a Transform. More... | |
static void | StopAllSoundsOfTransform (this Transform sourceTrans) |
This method allows you to abruptly stop all sounds triggered by or following a Transform. More... | |
static void | StopBusOfTransform (this Transform sourceTrans, string busName) |
This method allows you to stop all sounds of a particular Bus triggered by or following a Transform More... | |
static void | StopSoundGroupOfTransform (this Transform sourceTrans, string sType) |
This method allows you to abruptly stop all sounds of a particular Sound Group triggered by or following a Transform. More... | |
static void | UnpauseAllSoundsOfTransform (this Transform sourceTrans) |
This method allows you to unpause all sounds triggered by or following a Transform. More... | |
static void | UnpauseBusOfTransform (this Transform sourceTrans, string busName) |
This method allows you to unpause all sounds of a particular Bus triggered by or following a Transform More... | |
static void | UnpauseSoundGroupOfTransform (this Transform sourceTrans, string sType) |
This method allows you to unpause all sounds of a particular Sound Group triggered by or following a Transform. More... | |
static bool | IsTransformPlayingSoundGroup (this Transform sourceTrans, string sType) |
Will return whether the Sound Group you specify is played by a Transform you pass in. More... | |
This class contains extension methods so you can call some Master Audio methods with less parameters directly from the Transform object.
|
static |
This method allows you to fade out all sounds of a particular Sound Group triggered by or following a Transform for X seconds.
sourceTrans | The Transform the sound was triggered to follow or use the position of. |
sType | The name of the Sound Group. |
fadeTime | The amount of seconds the fading will take. |
|
static |
This will return a list of all playing Variations of a Transform
sourceTrans | Source transform |
|
static |
Will return whether the Sound Group you specify is played by a Transform you pass in.
sType | Sound Group name |
sourceTrans | The Transform in question |
|
static |
This method allows you to pause all sounds triggered by or following a Transform.
sourceTrans | The Transform the sound was triggered to follow or use the position of. |
|
static |
This method allows you to pause all sounds of a particular Bus triggered by or following a Transform
sourceTrans | The Transform the sound was triggered to follow or use the position of. |
busName | The name of the Bus. |
|
static |
This method allows you to pause all sounds of a particular Sound Group triggered by or following a Transform.
sourceTrans | The Transform the sound was triggered to follow or use the position of. |
sType | The name of the Sound Group to stop. |
|
static |
This method allows you to play a sound in a Sound Group from a specific position - the position of a Transform you pass in.
sType | The name of the Sound Group to trigger a sound from. |
sourceTrans | The Transform whose position you want the sound to eminate from. |
volumePercentage | Optional - used if you want to play the sound at a reduced volume (between 0 and 1). |
pitch | Optional - used if you want to play the sound at a specific pitch. If you do, it will override the pich and random pitch in the variation. |
delaySoundTime | Optional - used if you want to play the sound X seconds from now instead of immediately. |
variationName | Optional - used if you want to play a specific variation by name. Otherwise a random variation is played. |
|
static |
This method allows you to play a sound in a Sound Group from a specific position - the position of a Transform you pass in. Returns bool indicating success (played) or not.
sType | The name of the Sound Group to trigger a sound from. |
sourceTrans | The Transform whose position you want the sound to eminate from. |
volumePercentage | Optional - used if you want to play the sound at a reduced volume (between 0 and 1). |
pitch | Optional - used if you want to play the sound at a specific pitch. If you do, it will override the pich and random pitch in the variation. |
delaySoundTime | Optional - used if you want to play the sound X seconds from now instead of immediately. |
variationName | Optional - used if you want to play a specific variation by name. Otherwise a random variation is played. |
|
static |
This method allows you to play a sound in a Sound Group from a specific position - a Transform you pass in. This method will not return until the sound is finished (or cannot play) to continue execution. You need to call this with StartCoroutine. The sound will not be played looped, since that could cause a Coroutine that would never end.
sType | The name of the Sound Group to trigger a sound from. |
sourceTrans | The Transform whose position you want the sound to eminate from. Pass null if you want to play the sound 2D. |
volumePercentage | Optional - used if you want to play the sound at a reduced volume (between 0 and 1). |
pitch | Optional - used if you want to play the sound at a specific pitch. If you do, it will override the pich and random pitch in the variation. |
delaySoundTime | Optional - used if you want to play the sound X seconds from now instead of immediately. |
variationName | Optional - used if you want to play a specific variation by name. Otherwise a random variation is played. |
timeToSchedulePlay | Optional - used to pass in the DSP time to play the sound. Normally do not use this, use the delaySoundTime param instead. |
completedAction | Optional - Code to execute when the sound is finished. |
|
static |
This method allows you to play a sound in a Sound Group from a specific position - a Transform you pass in, and it will follow the Transform if it moves. Returns a PlaySoundResult.
sType | The name of the Sound Group to trigger a sound from. |
sourceTrans | The Transform whose position you want the sound to eminate from. |
volumePercentage | Optional - used if you want to play the sound at a reduced volume (between 0 and 1). |
pitch | Optional - used if you want to play the sound at a specific pitch. If you do, it will override the pich and random pitch in the variation. |
delaySoundTime | Optional - used if you want to play the sound X seconds from now instead of immediately. |
variationName | Optional - used if you want to play a specific variation by name. Otherwise a random variation is played. |
|
static |
This method allows you to play a sound in a Sound Group from a specific position - a Transform you pass in. Returns bool indicating success (played) or not.
sType | The name of the Sound Group to trigger a sound from. |
sourceTrans | The Transform whose position you want the sound to eminate from. |
volumePercentage | Optional - used if you want to play the sound at a reduced volume (between 0 and 1). |
pitch | Optional - used if you want to play the sound at a specific pitch. If you do, it will override the pich and random pitch in the variation. |
delaySoundTime | Optional - used if you want to play the sound X seconds from now instead of immediately. |
variationName | Optional - used if you want to play a specific variation by name. Otherwise a random variation is played. |
|
static |
This method allows you to play a sound in a Sound Group from a specific position - a Transform you pass in, and it will follow the Transform if it moves. This method will not return until the sound is finished (or cannot play) to continue execution. You need to call this with StartCoroutine. The sound will not be played looped, since that could cause a Coroutine that would never end.
sType | The name of the Sound Group to trigger a sound from. |
sourceTrans | The Transform whose position you want the sound to eminate from. Pass null if you want to play the sound 2D. |
volumePercentage | Optional - used if you want to play the sound at a reduced volume (between 0 and 1). |
pitch | Optional - used if you want to play the sound at a specific pitch. If you do, it will override the pich and random pitch in the variation. |
delaySoundTime | Optional - used if you want to play the sound X seconds from now instead of immediately. |
variationName | Optional - used if you want to play a specific variation by name. Otherwise a random variation is played. |
timeToSchedulePlay | Optional - used to pass in the DSP time to play the sound. Normally do not use this, use the delaySoundTime param instead. |
completedAction | Optional - Code to execute when the sound is finished. |
|
static |
This method allows you to abruptly stop all sounds triggered by or following a Transform.
sourceTrans | The Transform the sound was triggered to follow or use the position of. |
|
static |
This method allows you to stop all sounds of a particular Bus triggered by or following a Transform
sourceTrans | The Transform the sound was triggered to follow or use the position of. |
busName | The name of the Bus. |
|
static |
This method allows you to abruptly stop all sounds of a particular Sound Group triggered by or following a Transform.
sourceTrans | The Transform the sound was triggered to follow or use the position of. |
sType | The name of the Sound Group to stop. |
|
static |
This method allows you to unpause all sounds triggered by or following a Transform.
sourceTrans | The Transform the sound was triggered to follow or use the position of. |
|
static |
This method allows you to unpause all sounds of a particular Bus triggered by or following a Transform
sourceTrans | The Transform the sound was triggered to follow or use the position of. |
busName | The name of the Bus. |
|
static |
This method allows you to unpause all sounds of a particular Sound Group triggered by or following a Transform.
sourceTrans | The Transform the sound was triggered to follow or use the position of. |
sType | The name of the Sound Group to stop. |