Skip to content

Commit

Permalink
Added description for SetLibraryLoader
Browse files Browse the repository at this point in the history
  • Loading branch information
sandrohanea committed Mar 24, 2023
1 parent 978863f commit b05ce40
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Whisper.net/Internals/Native/NativeLibraryLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ public static class NativeLibraryLoader
{
private static ILibraryLoader? defaultLibraryLoader = null;

/// <summary>
/// Sets the library loader used to load the native libraries. Overwrite this only if you want some custom loading.
/// </summary>
/// <param name="libraryLoader">The library loader to be used.</param>
/// <remarks>
/// It needs to be set before the first <seealso cref="WhisperFactory"/> is created, otherwise it won't have any effect.
/// </remarks>
public static void SetLibraryLoader(ILibraryLoader libraryLoader)
{
defaultLibraryLoader = libraryLoader;
Expand Down

0 comments on commit b05ce40

Please sign in to comment.