Master Audio - AAA Sound Solution! v2024
The ultimate AAA audio config tool
Loading...
Searching...
No Matches
DarkTonic.MasterAudio.AudioUtil Class Reference

This class contains frequently used methods for audio in general. More...

Static Public Member Functions

static float GetAudioPlayedPercentage (AudioSource source)
 This method will tell you the percentage of the clip that is done Playing (0-100). More...
 
static bool IsClipPaused (AudioSource source)
 This method returns whether an AudioSource is paused or not. Only used by PlaylistControllers. More...
 

Detailed Description

This class contains frequently used methods for audio in general.

Member Function Documentation

◆ GetAudioPlayedPercentage()

static float DarkTonic.MasterAudio.AudioUtil.GetAudioPlayedPercentage ( AudioSource  source)
static

This method will tell you the percentage of the clip that is done Playing (0-100).

Parameters
sourceThe Audio Source to calculate for.
Returns
(0-100 float)

◆ IsClipPaused()

static bool DarkTonic.MasterAudio.AudioUtil.IsClipPaused ( AudioSource  source)
static

This method returns whether an AudioSource is paused or not. Only used by PlaylistControllers.

Parameters
sourceThe Audio Source in question.
Returns
True or false

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