Skip to content

Commit b40f969

Browse files
authored
Merge pull request #1 from IvanMurzak/documentation-update
Documentation update
2 parents aa5f070 + 89e8f64 commit b40f969

File tree

4 files changed

+7
-11
lines changed

4 files changed

+7
-11
lines changed

Assets/_PackageRoot/Runtime/AudioLoader.AudioSource.cs

+6-6
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ namespace Extensions.Unity.AudioLoader
77
public static partial class AudioLoader
88
{
99
/// <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
1111
/// </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>
1313
/// <param name="audioSource">AudioSource component from Unity UI</param>
1414
/// <param name="ignoreImageNotFoundError">Ignore error if the audio file was not found by specified url</param>
1515
/// <returns>Returns async task</returns>
@@ -44,7 +44,7 @@ public static async UniTask SetAudioSource(string url, AudioSource audioSource,
4444
}
4545

4646
/// <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
4848
/// </summary>
4949
/// <param name="url">URL to the audio file, web or local</param>
5050
/// <param name="audioSources">Array of AudioSource components from Unity UI</param>
@@ -53,7 +53,7 @@ public static UniTask SetAudioSource(string url, params AudioSource[] audioSourc
5353
=> SetAudioSource(url, false, audioSources);
5454

5555
/// <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
5757
/// </summary>
5858
/// <param name="url">URL to the audio file, web or local</param>
5959
/// <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
6565
return;
6666

6767
var audioClip = await LoadAudioClip(url, ignoreAudioFileNotFoundError);
68-
UniTask.Post((Action)(() =>
68+
UniTask.Post(() =>
6969
{
7070
for (var i = 0; i < audioSources.Length; i++)
7171
{
@@ -82,7 +82,7 @@ public static async UniTask SetAudioSource(string url, bool ignoreAudioFileNotFo
8282
Debug.LogException(e);
8383
}
8484
}
85-
}));
85+
});
8686
}
8787
}
8888
}

Assets/_PackageRoot/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"name": "Ivan Murzak",
66
"url": "https://github.com/IvanMurzak"
77
},
8-
"version": "1.0.0",
8+
"version": "1.0.1",
99
"unity": "2019.2",
1010
"description": "Asynchronous audio loading from remote or local destination. It has two layers of configurable cache system: RAM and Disk.",
1111
"dependencies": {

gitSubTreePushToUPM.bat

-2
This file was deleted.

gitSubTreePushToUPM.makefile

-2
This file was deleted.

0 commit comments

Comments
 (0)