@@ -7,9 +7,9 @@ namespace Extensions.Unity.AudioLoader
7
7
public static partial class AudioLoader
8
8
{
9
9
/// <summary>
10
- /// Load audio file from URL and set it to the Image component
10
+ /// Load audio file from URL and set it to the AudioSource component
11
11
/// </summary>
12
- /// <param name="url">URL to the picture , web or local</param>
12
+ /// <param name="url">URL to the audio file , web or local</param>
13
13
/// <param name="audioSource">AudioSource component from Unity UI</param>
14
14
/// <param name="ignoreImageNotFoundError">Ignore error if the audio file was not found by specified url</param>
15
15
/// <returns>Returns async task</returns>
@@ -44,7 +44,7 @@ public static async UniTask SetAudioSource(string url, AudioSource audioSource,
44
44
}
45
45
46
46
/// <summary>
47
- /// Load audio file from URL and set it to the Image components
47
+ /// Load audio file from URL and set it to the AudioSource components
48
48
/// </summary>
49
49
/// <param name="url">URL to the audio file, web or local</param>
50
50
/// <param name="audioSources">Array of AudioSource components from Unity UI</param>
@@ -53,7 +53,7 @@ public static UniTask SetAudioSource(string url, params AudioSource[] audioSourc
53
53
=> SetAudioSource ( url , false , audioSources ) ;
54
54
55
55
/// <summary>
56
- /// Load audio file from URL and set it to the Image components
56
+ /// Load audio file from URL and set it to the AudioSource components
57
57
/// </summary>
58
58
/// <param name="url">URL to the audio file, web or local</param>
59
59
/// <param name="ignoreAudioFileNotFoundError">Ignore error if the audio file was not found by specified url</param>
@@ -65,7 +65,7 @@ public static async UniTask SetAudioSource(string url, bool ignoreAudioFileNotFo
65
65
return ;
66
66
67
67
var audioClip = await LoadAudioClip ( url , ignoreAudioFileNotFoundError ) ;
68
- UniTask . Post ( ( Action ) ( ( ) =>
68
+ UniTask . Post ( ( ) =>
69
69
{
70
70
for ( var i = 0 ; i < audioSources . Length ; i ++ )
71
71
{
@@ -82,7 +82,7 @@ public static async UniTask SetAudioSource(string url, bool ignoreAudioFileNotFo
82
82
Debug . LogException ( e ) ;
83
83
}
84
84
}
85
- } ) ) ;
85
+ } ) ;
86
86
}
87
87
}
88
88
}
0 commit comments