Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation update #1

Merged
merged 3 commits into from
Aug 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Assets/_PackageRoot/Runtime/AudioLoader.AudioSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ namespace Extensions.Unity.AudioLoader
public static partial class AudioLoader
{
/// <summary>
/// Load audio file from URL and set it to the Image component
/// Load audio file from URL and set it to the AudioSource component
/// </summary>
/// <param name="url">URL to the picture, web or local</param>
/// <param name="url">URL to the audio file, web or local</param>
/// <param name="audioSource">AudioSource component from Unity UI</param>
/// <param name="ignoreImageNotFoundError">Ignore error if the audio file was not found by specified url</param>
/// <returns>Returns async task</returns>
Expand Down Expand Up @@ -44,7 +44,7 @@ public static async UniTask SetAudioSource(string url, AudioSource audioSource,
}

/// <summary>
/// Load audio file from URL and set it to the Image components
/// Load audio file from URL and set it to the AudioSource components
/// </summary>
/// <param name="url">URL to the audio file, web or local</param>
/// <param name="audioSources">Array of AudioSource components from Unity UI</param>
Expand All @@ -53,7 +53,7 @@ public static UniTask SetAudioSource(string url, params AudioSource[] audioSourc
=> SetAudioSource(url, false, audioSources);

/// <summary>
/// Load audio file from URL and set it to the Image components
/// Load audio file from URL and set it to the AudioSource components
/// </summary>
/// <param name="url">URL to the audio file, web or local</param>
/// <param name="ignoreAudioFileNotFoundError">Ignore error if the audio file was not found by specified url</param>
Expand All @@ -65,7 +65,7 @@ public static async UniTask SetAudioSource(string url, bool ignoreAudioFileNotFo
return;

var audioClip = await LoadAudioClip(url, ignoreAudioFileNotFoundError);
UniTask.Post((Action)(() =>
UniTask.Post(() =>
{
for (var i = 0; i < audioSources.Length; i++)
{
Expand All @@ -82,7 +82,7 @@ public static async UniTask SetAudioSource(string url, bool ignoreAudioFileNotFo
Debug.LogException(e);
}
}
}));
});
}
}
}
2 changes: 1 addition & 1 deletion Assets/_PackageRoot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "Ivan Murzak",
"url": "https://github.com/IvanMurzak"
},
"version": "1.0.0",
"version": "1.0.1",
"unity": "2019.2",
"description": "Asynchronous audio loading from remote or local destination. It has two layers of configurable cache system: RAM and Disk.",
"dependencies": {
Expand Down
2 changes: 0 additions & 2 deletions gitSubTreePushToUPM.bat

This file was deleted.

2 changes: 0 additions & 2 deletions gitSubTreePushToUPM.makefile

This file was deleted.