Class AudioDataExtensions
Inherited Members
Namespace: Doozy.Runtime.Soundy
Assembly: cs.temp.dll.dll
Syntax
public static class AudioDataExtensions
Methods
SetClip<T>(T, AudioClip)
Set the clip of this audio data
Declaration
public static T SetClip<T>(this T audioData, AudioClip clip)
where T : AudioData
Parameters
Type | Name | Description |
---|---|---|
T | audioData | Target audio data |
AudioClip | clip | Audio data clip |
Returns
Type | Description |
---|---|
T | Target audio data |
Type Parameters
Name | Description |
---|---|
T | AudioData type |
SetPitch<T>(T, Single)
Set the pitch of this audio data
Declaration
public static T SetPitch<T>(this T audioData, float pitch)
where T : AudioData
Parameters
Type | Name | Description |
---|---|---|
T | audioData | Target audio data |
Single | pitch | Audio data pitch |
Returns
Type | Description |
---|---|
T | Target audio data |
Type Parameters
Name | Description |
---|---|
T | AudioData type |
SetVolume<T>(T, Single)
Set the volume of this audio data
Declaration
public static T SetVolume<T>(this T audioData, float volume)
where T : AudioData
Parameters
Type | Name | Description |
---|---|---|
T | audioData | Target audio data |
Single | volume | Audio data volume |
Returns
Type | Description |
---|---|
T | Target audio data |
Type Parameters
Name | Description |
---|---|
T | AudioData type |
SetWeight<T>(T, Int32)
Sets the weight of this sound data
Declaration
public static T SetWeight<T>(this T soundData, int weight)
where T : AudioData
Parameters
Type | Name | Description |
---|---|---|
T | soundData | Target sound data |
Int32 | weight | Weight value |
Returns
Type | Description |
---|---|
T | Target sound data |
Type Parameters
Name | Description |
---|---|
T | SoundData type |