• Articles
  • Api Documentation
Show / Hide Table of Contents
  • DDSLoader
    • DDSImage
    • DDSImage.DDSHeader
    • DDSImage.DDSPixelFormat
    • DDSImage.HeaderFlags
    • DDSImage.PixelFormatFlags
    • DDSUnityExtensions
    • FourCC
  • LLBML
    • BallApi
    • CharacterApi
    • GraphicUtils
    • InputApi
    • LLBMLPlugin
    • LoadingInfo
    • LoadingScreen
    • PluginInfos
    • ProgressApi
    • ScreenApi
    • StateApi
  • LLBML.Audio
    • AudioAsset
    • AudioCache
    • AudioInfo
    • AudioUtils
  • LLBML.External
    • IntHelpers
    • Murmur3
  • LLBML.GameEvents
    • GameEvents
    • GameStateEvents
    • LobbyEventArgs
    • LobbyEvents
    • LobbyReadyArgs
    • MenuEvents
    • OnLobbyEnteredHandler
    • OnLobbyReadyHandler
    • OnMainMenuEnteredArgs
    • OnMainMenuEnteredHandler
    • OnMainMenuFirstEnteredHandler
    • OnPlayerJoinArgs
    • OnPlayerJoinHandler
    • OnStateChangeArgs
    • OnStateChangeHandler
    • OnUnlinkFromPlayerArgs
    • OnUnlinkFromPlayerHandler
    • OnUserCharacterPickArgs
    • OnUserCharacterPickHandler
    • OnUserSkinClickArgs
    • OnUserSkinClickHandler
  • LLBML.Graphic
    • Draw
    • Draw.Alignment
  • LLBML.Math
    • BinaryUtils
    • Boundsf
    • Floatf
    • Vector2f
    • Vector2i
  • LLBML.Messages
    • CustomMessage
    • MessageActions
    • MessageApi
    • MessageApi.OnReceiveMessageHandler
    • MessageEventArgs
  • LLBML.Networking
    • Channel
    • EnvelopeApi
    • EnvelopeApi.OnReceiveEnvelopeHandler
    • EnvelopeEventArgs
    • EP2PSend
    • EP2PSend.Enum
    • EP2PSend.Enum_Mapping
    • NetworkApi
    • Transaction
    • TransactionCode
    • TransactionState
  • LLBML.Players
    • Player
    • PlayerStatus
    • PlayerStatus.Enum
    • PlayerStatus.Enum_Mappings
    • Team
    • Team.Enum
    • Team.Enum_Mappings
  • LLBML.Settings
    • GameSettings
  • LLBML.States
    • GameState
    • GameState.Enum
    • GameState.Enum_Mapping
    • GameStates
    • GameStatesGameUtils
    • GameStatesLobbyUtils
    • PlayerLobbyState
  • LLBML.Texture
    • TextureUtils
  • LLBML.UI
    • Dialogs
  • LLBML.Utils
    • ArrayExtension
    • BepInRef
    • ControlledRandom
    • DebugUtils
    • EnumWrapper<T>
    • GenericCache<K, T>
    • GenericUtils
    • Hash<T>
    • IByteable
    • ModDependenciesUtils
    • ModdingFolder
    • PatchUtils
    • StringUtils

Class AudioCache

A class to load, store and retreive UnityEngine.AudioClip

Inheritance
System.Object
GenericCache<System.String, AudioAsset>
AudioCache
Inherited Members
GenericCache<String, AudioAsset>.Logger
GenericCache<String, AudioAsset>.cache
GenericCache<String, AudioAsset>.Count
GenericCache<String, AudioAsset>.Clear()
GenericCache<String, AudioAsset>.ContainsKey(String)
GenericCache<String, AudioAsset>.Add(String, AudioAsset)
GenericCache<String, AudioAsset>.Item[String]
GenericCache<String, AudioAsset>.GetEntries(String)
GenericCache<String, AudioAsset>.GetEntry(String)
GenericCache<String, AudioAsset>.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: LLBML.Audio
Assembly: LLBModdingLib.dll
Syntax
public class AudioCache : GenericCache<string, AudioAsset>

Properties

IsLoading

Whether or not some loading coroutines are currently running

Declaration
public bool IsLoading { get; }
Property Value
Type Description
System.Boolean

Methods

Add(String, AudioAsset)

Adds the specified key and asset.

Declaration
public override void Add(string key, AudioAsset audioAsset)
Parameters
Type Name Description
System.String key

The key to insert into.

AudioAsset audioAsset

The AudioAsset to insert.

Overrides
LLBML.Utils.GenericCache<System.String, LLBML.Audio.AudioAsset>.Add(System.String, LLBML.Audio.AudioAsset)

Add(String, AudioClip)

Adds the specified key and clip.

Declaration
public void Add(string key, AudioClip audioClip)
Parameters
Type Name Description
System.String key

The key to insert.

UnityEngine.AudioClip audioClip

The UnityEngine.AudioClip.

CLoadClip(String, AudioInfo)

Coroutine that loads an audio file and stores it into the cache

Declaration
public IEnumerator CLoadClip(string key, AudioInfo audioInfo)
Parameters
Type Name Description
System.String key

The index for the audio clip

AudioInfo audioInfo

The AudioInfo to load

Returns
Type Description
System.Collections.IEnumerator

GetAsset(String)

Gets the first AudioAsset that is found with the specified key.

Declaration
public AudioAsset GetAsset(string key)
Parameters
Type Name Description
System.String key

The list index

Returns
Type Description
AudioAsset

GetAssets(String)

Gets the System.Collections.Generic.List<T> with the specified key.

Declaration
public List<AudioAsset> GetAssets(string key)
Parameters
Type Name Description
System.String key

Key.

Returns
Type Description
System.Collections.Generic.List<AudioAsset>

GetClip(String)

Gets the first clip that is found under the assets with the specified key.

Declaration
public AudioClip GetClip(string key)
Parameters
Type Name Description
System.String key

The list index

Returns
Type Description
UnityEngine.AudioClip

GetClips(String)

Gets a list of UnityEngine.AudioClip under the assets with the specified key.

Declaration
public List<AudioClip> GetClips(string key)
Parameters
Type Name Description
System.String key

The list index

Returns
Type Description
System.Collections.Generic.List<UnityEngine.AudioClip>

LoadClip(String, AudioInfo)

Loads the audio file described by the AudioInfo into a clip, then store it into the cache at the specified index.

Declaration
public void LoadClip(string key, AudioInfo audioInfo)
Parameters
Type Name Description
System.String key

The index of the resulting clip

AudioInfo audioInfo

The AudioInfo of the audio file to load.

LoadClip(String, FileInfo, String)

Loads the audio file, into a clip, then store it into the cache at the specified index.

Declaration
public void LoadClip(string key, FileInfo file, string clipName = null)
Parameters
Type Name Description
System.String key

The index of the resulting clip

System.IO.FileInfo file

The path to the audio file to load.

System.String clipName

The name the resulting clip should have.

LoadClip(String, String, String)

Loads the audio file, into a clip, then store it into the cache at the specified index.

Declaration
public void LoadClip(string key, string filePath, string clipName = null)
Parameters
Type Name Description
System.String key

The index of the resulting clip

System.String filePath

The path to the audio file to load.

System.String clipName

The name the resulting clip should have.

In This Article
Back to top Generated by DocFX