Class AudioSourceExtensions
Inherited Members
Namespace: Doozy.Runtime.Soundy
Assembly: cs.temp.dll.dll
Syntax
public static class AudioSourceExtensions
Methods
NotPlayedPercentage(AudioSource)
Get the percentage of the clip that has not been played
Declaration
public static float NotPlayedPercentage(this AudioSource source)
Parameters
Type | Name | Description |
---|---|---|
AudioSource | source | The AudioSource |
Returns
Type | Description |
---|---|
Single | The percentage of the clip that has not been played |
NotPlayedPercentage(AudioSource, Single)
Get the percentage of the clip that has not been played
Declaration
public static float NotPlayedPercentage(this AudioSource source, float time)
Parameters
Type | Name | Description |
---|---|---|
AudioSource | source | The AudioSource |
Single | time | The time to check |
Returns
Type | Description |
---|---|
Single | The percentage of the clip that has not been played |
PlayedPercentage(AudioSource)
Get the percentage of the clip that has been played
Declaration
public static float PlayedPercentage(this AudioSource source)
Parameters
Type | Name | Description |
---|---|---|
AudioSource | source | The AudioSource |
Returns
Type | Description |
---|---|
Single | The percentage of the clip that has been played |
PlayedPercentage(AudioSource, Single)
Get the percentage of the clip that has been played
Declaration
public static float PlayedPercentage(this AudioSource source, float time)
Parameters
Type | Name | Description |
---|---|---|
AudioSource | source | The AudioSource |
Single | time | The time to check |
Returns
Type | Description |
---|---|
Single | The percentage of the clip that has been played |