Class SoundReplacement
Handles import and injection of custom sounds and songs with the purpose of providing modding support. Sound files are imported from mod bundles with load order or loaded directly from disk.
Namespace: DaggerfallWorkshop.Utility.AssetInjection
Assembly: Assembly-CSharp.dll
Syntax
public static class SoundReplacement
Properties
| Improve this Doc View SourceSoundPath
Path to custom sounds and songs on disk.
Declaration
public static string SoundPath { get; }
Property Value
Type | Description |
---|---|
String |
Methods
| Improve this Doc View SourceTryImportMidiSong(String, out Byte[])
Seek midi song from mods.
Declaration
public static bool TryImportMidiSong(string filename, out byte[] songBytes)
Parameters
Type | Name | Description |
---|---|---|
String | filename | Name of song to seek including .mid extension. |
Byte[] | songBytes | Midi data as a byte array. |
Returns
Type | Description |
---|---|
Boolean | True if song is found. |
TryImportSong(SongFiles, out AudioClip)
Seek song from mods.
Declaration
public static bool TryImportSong(SongFiles song, out AudioClip audioClip)
Parameters
Type | Name | Description |
---|---|---|
SongFiles | song | Song to seek. |
AudioClip | audioClip | Audioclip with imported sound data. |
Returns
Type | Description |
---|---|
Boolean | True if song is found. |
TryImportSound(SoundClips, out AudioClip)
Seek sound from mods.
Declaration
public static bool TryImportSound(SoundClips sound, out AudioClip audioClip)
Parameters
Type | Name | Description |
---|---|---|
SoundClips | sound | Sound clip to seek. |
AudioClip | audioClip | Audioclip with imported sound data. |
Returns
Type | Description |
---|---|
Boolean | True if sound is found. |