|
|
@@ -3,12 +3,12 @@
|
|
|
Audio helper mod for The Long Dark. Uses Unitys native audio engine to enable easier usage of custom audio in mods.
|
|
|
|
|
|
#### Current features v0.8
|
|
|
- - Loading of single audio files (ogg, wav, mp3) on runtime
|
|
|
- - Loading of all audio files inside a directory
|
|
|
- - Loading of single audioclips inside assetbundles
|
|
|
- - Loading of all audioclips inside assetbundles
|
|
|
- - Creating of audiosources on objects/player
|
|
|
- - Playing of singleshot audioclips on object/player
|
|
|
+- Loading of single audio files (ogg, wav, mp3) on runtime
|
|
|
+- Loading of all audio files inside a directory
|
|
|
+- Loading of single audioclips inside assetbundles
|
|
|
+- Loading of all audioclips inside assetbundles
|
|
|
+- Creating of audiosources on objects/player
|
|
|
+- Playing of singleshot audioclips on object/player
|
|
|
- Playing list of audioclips on object/player (looped, randomized)
|
|
|
- Audiocategories linked to vanilla volume settings
|
|
|
- Global and custom settings for audiosources
|
|
|
@@ -29,7 +29,6 @@ Shot audiosources can play audioclips from a ClipManager instance directly. Queu
|
|
|
|
|
|
#### Usage example
|
|
|
|
|
|
-
|
|
|
```csharp
|
|
|
using MelonLoader;
|
|
|
using UnityEngine;
|
|
|
@@ -57,7 +56,7 @@ namespace HereBeNamespace
|
|
|
}
|
|
|
|
|
|
public override void OnUpdate()
|
|
|
- {
|
|
|
+ {
|
|
|
if (InputManager.GetKeyDown(InputManager.m_CurrentContext, KeyCode.Keypad0))
|
|
|
{
|
|
|
// Play clip named "isThisFood.ogg on the player
|