net.dreditor.audio 0.1.6 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. package/.attestation.p7m +0 -0
  2. package/ClearAudioSourceOnTitleScreen.cs +50 -50
  3. package/ClearAudioSourceOnTitleScreen.cs.meta +11 -11
  4. package/CreditsMusic.cs +63 -63
  5. package/CreditsMusic.cs.meta +11 -11
  6. package/CreditsMusicUnity.cs +21 -21
  7. package/CreditsMusicUnity.cs.meta +11 -11
  8. package/DREditor.Audio.asmdef +18 -18
  9. package/DREditor.Audio.asmdef.meta +7 -7
  10. package/EnvironmentSFXMananger.cs +159 -159
  11. package/EnvironmentSFXMananger.cs.meta +11 -11
  12. package/EnvironmentSFXManangerBase.cs +23 -23
  13. package/EnvironmentSFXManangerBase.cs.meta +11 -11
  14. package/Music.cs +26 -26
  15. package/Music.cs.meta +11 -11
  16. package/MusicFMOD.cs +31 -31
  17. package/MusicFMOD.cs.meta +11 -11
  18. package/MusicManager.cs +435 -435
  19. package/MusicManager.cs.meta +11 -11
  20. package/MusicManagerBase.cs +114 -114
  21. package/MusicManagerBase.cs.meta +11 -11
  22. package/MusicSaver.cs +126 -126
  23. package/MusicSaver.cs.meta +11 -11
  24. package/MusicTextHandler.cs +118 -118
  25. package/MusicTextHandler.cs.meta +11 -11
  26. package/OnVoiceLineSettingChanged.cs +68 -68
  27. package/OnVoiceLineSettingChanged.cs.meta +11 -11
  28. package/OptionVolume.cs +75 -75
  29. package/OptionVolume.cs.meta +11 -11
  30. package/PlaySelectAudioOnUIChange.cs +41 -41
  31. package/PlaySelectAudioOnUIChange.cs.meta +11 -11
  32. package/PlaySubmitSFXOnClick.cs +22 -22
  33. package/PlaySubmitSFXOnClick.cs.meta +11 -11
  34. package/Playlist.cs +80 -80
  35. package/Playlist.cs.meta +11 -11
  36. package/PlaylistEditor.cs +357 -357
  37. package/PlaylistEditor.cs.meta +11 -11
  38. package/PlaylistFMOD.cs +38 -38
  39. package/PlaylistFMOD.cs.meta +11 -11
  40. package/SFXManager.cs +347 -347
  41. package/SFXManager.cs.meta +11 -11
  42. package/SFXManagerBase.cs +37 -37
  43. package/SFXManagerBase.cs.meta +11 -11
  44. package/{Samples → Samples~}/Audio_Event_Save_Handler.prefab +57 -57
  45. package/{Samples → Samples~}/Audio_Event_Save_Handler.prefab.meta +7 -7
  46. package/{Samples → Samples~}/Credits_Music_Unity.prefab +66 -66
  47. package/{Samples → Samples~}/Credits_Music_Unity.prefab.meta +7 -7
  48. package/{Samples → Samples~}/Dialogue_Click_Sound_Player_DRE.prefab +76 -76
  49. package/{Samples → Samples~}/Dialogue_Click_Sound_Player_DRE.prefab.meta +7 -7
  50. package/{Samples → Samples~}/Environment_SFX_Manager.prefab +146 -146
  51. package/{Samples → Samples~}/Environment_SFX_Manager.prefab.meta +7 -7
  52. package/{Samples → Samples~}/Environment_SFX_Manager_Shell.prefab +96 -96
  53. package/{Samples → Samples~}/Environment_SFX_Manager_Shell.prefab.meta +7 -7
  54. package/{Samples → Samples~}/Environment_Source.prefab +130 -130
  55. package/{Samples → Samples~}/Environment_Source.prefab.meta +7 -7
  56. package/{Samples → Samples~}/Music_Manager.prefab +146 -146
  57. package/{Samples → Samples~}/Music_Manager.prefab.meta +7 -7
  58. package/{Samples → Samples~}/Music_Manager_Shell.prefab +75 -75
  59. package/{Samples → Samples~}/Music_Manager_Shell.prefab.meta +7 -7
  60. package/{Samples → Samples~}/Music_Source.prefab +144 -144
  61. package/{Samples → Samples~}/Music_Source.prefab.meta +7 -7
  62. package/{Samples → Samples~}/On_Voice_Line_Setting_Changed.prefab +53 -53
  63. package/{Samples → Samples~}/On_Voice_Line_Setting_Changed.prefab.meta +7 -7
  64. package/{Samples → Samples~}/Play_Select_Audio_On_UI_Change.prefab +46 -46
  65. package/{Samples → Samples~}/Play_Select_Audio_On_UI_Change.prefab.meta +7 -7
  66. package/{Samples → Samples~}/SFX_Manager.prefab +397 -397
  67. package/{Samples → Samples~}/SFX_Manager.prefab.meta +7 -7
  68. package/{Samples → Samples~}/SFX_Manager_Shell.prefab +53 -53
  69. package/{Samples → Samples~}/SFX_Manager_Shell.prefab.meta +7 -7
  70. package/{Samples → Samples~}/SFX_Source.prefab +130 -130
  71. package/{Samples → Samples~}/SFX_Source.prefab.meta +7 -7
  72. package/{Samples → Samples~}/Select_SFX_On_Setting_Changed.prefab +51 -51
  73. package/{Samples → Samples~}/Select_SFX_On_Setting_Changed.prefab.meta +7 -7
  74. package/{Samples → Samples~}/Sound_Manager.prefab +473 -473
  75. package/{Samples → Samples~}/Sound_Manager.prefab.meta +7 -7
  76. package/{Samples → Samples~}/Sound_Manager_Events.prefab +261 -261
  77. package/{Samples → Samples~}/Sound_Manager_Events.prefab.meta +7 -7
  78. package/{Samples → Samples~}/Sound_Manager_Shell.prefab +370 -370
  79. package/{Samples → Samples~}/Sound_Manager_Shell.prefab.meta +7 -7
  80. package/{Samples → Samples~}/Sound_Player_DRE.prefab +47 -47
  81. package/{Samples → Samples~}/Sound_Player_DRE.prefab.meta +7 -7
  82. package/{Samples → Samples~}/StopAllAudio.asset +14 -14
  83. package/{Samples → Samples~}/StopAllAudio.asset.meta +8 -8
  84. package/{Samples → Samples~}/UI_Cancel_Source.prefab +130 -130
  85. package/{Samples → Samples~}/UI_Cancel_Source.prefab.meta +7 -7
  86. package/{Samples → Samples~}/UI_Select_Source.prefab +130 -130
  87. package/{Samples → Samples~}/UI_Select_Source.prefab.meta +7 -7
  88. package/{Samples → Samples~}/UI_Submit_Source.prefab +130 -130
  89. package/{Samples → Samples~}/UI_Submit_Source.prefab.meta +7 -7
  90. package/{Samples → Samples~}/Voice_SFX_Manager.prefab +146 -146
  91. package/{Samples → Samples~}/Voice_SFX_Manager.prefab.meta +7 -7
  92. package/{Samples → Samples~}/Voice_SFX_Manager_Shell.prefab +49 -49
  93. package/{Samples → Samples~}/Voice_SFX_Manager_Shell.prefab.meta +7 -7
  94. package/{Samples → Samples~}/Voice_Source.prefab +130 -130
  95. package/{Samples → Samples~}/Voice_Source.prefab.meta +7 -7
  96. package/SelectSFXOnSceneEvent.cs +21 -21
  97. package/SelectSFXOnSceneEvent.cs.meta +11 -11
  98. package/SoundManager.cs +190 -190
  99. package/SoundManager.cs.meta +11 -11
  100. package/SoundManagerBase.cs +72 -72
  101. package/SoundManagerBase.cs.meta +11 -11
  102. package/SoundPlayerDRE.cs +26 -26
  103. package/SoundPlayerDRE.cs.meta +11 -11
  104. package/SoundPlayerDREUnity.cs +28 -28
  105. package/SoundPlayerDREUnity.cs.meta +11 -11
  106. package/SoundService.cs +10 -10
  107. package/SoundService.cs.meta +11 -11
  108. package/StopEnvAudioToTitle.cs +16 -16
  109. package/StopEnvAudioToTitle.cs.meta +11 -11
  110. package/VOManagerBase.cs +28 -28
  111. package/VOManagerBase.cs.meta +11 -11
  112. package/VoiceSFXManager.cs +104 -104
  113. package/VoiceSFXManager.cs.meta +11 -11
  114. package/package.json +41 -36
  115. package/package.json.meta +7 -7
  116. package/Samples.meta +0 -8
Binary file
@@ -1,51 +1,51 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- using UnityEngine;
3
- using DREditor.Services;
4
-
5
- #if FMOD_UNITY
6
- using FMODUnity;
7
- #endif
8
-
9
- namespace DREditor.Audio
10
- {
11
- /// <summary>
12
- ///
13
- /// </summary>
14
- [ClassHeader(nameof(IToTitleScreen) +
15
- "\n\n")]
16
- public class ClearAudioSourceOnTitleScreen : MonoBehaviour, IToTitleScreen
17
- {
18
- #if FMOD_UNITY
19
- /// <summary>
20
- ///
21
- /// </summary>
22
- [Tooltip("")]
23
- [SerializeField] protected StudioEventEmitter audioSource = null;
24
- #else
25
- /// <summary>
26
- ///
27
- /// </summary>
28
- [Tooltip("")]
29
- [SerializeField] protected AudioSource audioSource = null;
30
- #endif
31
-
32
- /// <inheritdoc/>
33
- public virtual void ToTitleScreen()
34
- {
35
- if (audioSource != null)
36
- ClearSource();
37
- }
38
-
39
- /// <summary>
40
- ///
41
- /// </summary>
42
- protected virtual void ClearSource()
43
- {
44
- #if FMOD_UNITY
45
- audioSource.Event = "";
46
- #else
47
- audioSource.clip = null;
48
- #endif
49
- }
50
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using UnityEngine;
3
+ using DREditor.Services;
4
+
5
+ #if FMOD_UNITY
6
+ using FMODUnity;
7
+ #endif
8
+
9
+ namespace DREditor.Audio
10
+ {
11
+ /// <summary>
12
+ ///
13
+ /// </summary>
14
+ [ClassHeader(nameof(IToTitleScreen) +
15
+ "\n\n")]
16
+ public class ClearAudioSourceOnTitleScreen : MonoBehaviour, IToTitleScreen
17
+ {
18
+ #if FMOD_UNITY
19
+ /// <summary>
20
+ ///
21
+ /// </summary>
22
+ [Tooltip("")]
23
+ [SerializeField] protected StudioEventEmitter audioSource = null;
24
+ #else
25
+ /// <summary>
26
+ ///
27
+ /// </summary>
28
+ [Tooltip("")]
29
+ [SerializeField] protected AudioSource audioSource = null;
30
+ #endif
31
+
32
+ /// <inheritdoc/>
33
+ public virtual void ToTitleScreen()
34
+ {
35
+ if (audioSource != null)
36
+ ClearSource();
37
+ }
38
+
39
+ /// <summary>
40
+ ///
41
+ /// </summary>
42
+ protected virtual void ClearSource()
43
+ {
44
+ #if FMOD_UNITY
45
+ audioSource.Event = "";
46
+ #else
47
+ audioSource.clip = null;
48
+ #endif
49
+ }
50
+ }
51
51
  }
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: 161248ef07168e44c8baaacdf09ef00b
3
- MonoImporter:
4
- externalObjects: {}
5
- serializedVersion: 2
6
- defaultReferences: []
7
- executionOrder: 0
8
- icon: {instanceID: 0}
9
- userData:
10
- assetBundleName:
11
- assetBundleVariant:
1
+ fileFormatVersion: 2
2
+ guid: 161248ef07168e44c8baaacdf09ef00b
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
package/CreditsMusic.cs CHANGED
@@ -1,64 +1,64 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- using DREditor.EventObjects;
3
- using DREditor.Services;
4
- using System.Collections;
5
- using System.Collections.Generic;
6
- using UnityEngine;
7
-
8
- namespace DREditor.Audio
9
- {
10
- /// <summary>
11
- ///
12
- /// </summary>
13
- public abstract class CreditsMusic : MonoBehaviour
14
- {
15
- /// <summary>
16
- ///
17
- /// </summary>
18
- [Tooltip("")]
19
- [SerializeField] protected SceneEventListener onLeavingCredits = null;
20
-
21
-
22
- /// <summary>
23
- ///
24
- /// </summary>
25
- protected abstract void Start();
26
-
27
- /// <summary>
28
- ///
29
- /// </summary>
30
- protected virtual void OnEnable() => onLeavingCredits.Response.AddListener(FadeMusicOnLeaving);
31
-
32
- /// <summary>
33
- ///
34
- /// </summary>
35
- protected virtual void OnDisable() => onLeavingCredits.Response.RemoveListener(FadeMusicOnLeaving);
36
-
37
- /// <summary>
38
- ///
39
- /// </summary>
40
- protected virtual void FadeMusicOnLeaving() => ServiceLocator.GetService<MusicManagerBase>().FadeMusic();
41
-
42
-
43
- /// <summary>
44
- ///
45
- /// </summary>
46
- /// <typeparam name="T"></typeparam>
47
- /// <param name="musicEvents"></param>
48
- /// <returns></returns>
49
- protected virtual IEnumerator PlayMusicTracks<T>(List<T> musicEvents)
50
- {
51
- for (int i = 0; i < musicEvents.Count; i++)
52
- {
53
- ServiceLocator.GetService<MusicManagerBase>().PlayMusic(musicEvents[i], true);
54
-
55
- yield return new WaitUntil(() => ServiceLocator.GetService<MusicManagerBase>().MusicIsPlaying());
56
-
57
- while (ServiceLocator.GetService<MusicManagerBase>().MusicIsPlaying())
58
- yield return null;
59
- }
60
-
61
- yield break;
62
- }
63
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using DREditor.EventObjects;
3
+ using DREditor.Services;
4
+ using System.Collections;
5
+ using System.Collections.Generic;
6
+ using UnityEngine;
7
+
8
+ namespace DREditor.Audio
9
+ {
10
+ /// <summary>
11
+ ///
12
+ /// </summary>
13
+ public abstract class CreditsMusic : MonoBehaviour
14
+ {
15
+ /// <summary>
16
+ ///
17
+ /// </summary>
18
+ [Tooltip("")]
19
+ [SerializeField] protected SceneEventListener onLeavingCredits = null;
20
+
21
+
22
+ /// <summary>
23
+ ///
24
+ /// </summary>
25
+ protected abstract void Start();
26
+
27
+ /// <summary>
28
+ ///
29
+ /// </summary>
30
+ protected virtual void OnEnable() => onLeavingCredits.Response.AddListener(FadeMusicOnLeaving);
31
+
32
+ /// <summary>
33
+ ///
34
+ /// </summary>
35
+ protected virtual void OnDisable() => onLeavingCredits.Response.RemoveListener(FadeMusicOnLeaving);
36
+
37
+ /// <summary>
38
+ ///
39
+ /// </summary>
40
+ protected virtual void FadeMusicOnLeaving() => ServiceLocator.GetService<MusicManagerBase>().FadeMusic();
41
+
42
+
43
+ /// <summary>
44
+ ///
45
+ /// </summary>
46
+ /// <typeparam name="T"></typeparam>
47
+ /// <param name="musicEvents"></param>
48
+ /// <returns></returns>
49
+ protected virtual IEnumerator PlayMusicTracks<T>(List<T> musicEvents)
50
+ {
51
+ for (int i = 0; i < musicEvents.Count; i++)
52
+ {
53
+ ServiceLocator.GetService<MusicManagerBase>().PlayMusic(musicEvents[i], true);
54
+
55
+ yield return new WaitUntil(() => ServiceLocator.GetService<MusicManagerBase>().MusicIsPlaying());
56
+
57
+ while (ServiceLocator.GetService<MusicManagerBase>().MusicIsPlaying())
58
+ yield return null;
59
+ }
60
+
61
+ yield break;
62
+ }
63
+ }
64
64
  }
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: 5af800aa825768e4ca5de7a3e2328086
3
- MonoImporter:
4
- externalObjects: {}
5
- serializedVersion: 2
6
- defaultReferences: []
7
- executionOrder: 0
8
- icon: {instanceID: 0}
9
- userData:
10
- assetBundleName:
11
- assetBundleVariant:
1
+ fileFormatVersion: 2
2
+ guid: 5af800aa825768e4ca5de7a3e2328086
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -1,22 +1,22 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- using System.Collections.Generic;
3
- using UnityEngine;
4
-
5
- namespace DREditor.Audio
6
- {
7
- /// <summary>
8
- ///
9
- /// </summary>
10
- public class CreditsMusicUnity : CreditsMusic
11
- {
12
- /// <summary>
13
- ///
14
- /// </summary>
15
- [Tooltip("")]
16
- [SerializeField] protected List<AudioClip> musicEvents = new();
17
-
18
-
19
- /// <inheritdoc/>
20
- protected override void Start() => StartCoroutine(PlayMusicTracks(musicEvents));
21
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using System.Collections.Generic;
3
+ using UnityEngine;
4
+
5
+ namespace DREditor.Audio
6
+ {
7
+ /// <summary>
8
+ ///
9
+ /// </summary>
10
+ public class CreditsMusicUnity : CreditsMusic
11
+ {
12
+ /// <summary>
13
+ ///
14
+ /// </summary>
15
+ [Tooltip("")]
16
+ [SerializeField] protected List<AudioClip> musicEvents = new();
17
+
18
+
19
+ /// <inheritdoc/>
20
+ protected override void Start() => StartCoroutine(PlayMusicTracks(musicEvents));
21
+ }
22
22
  }
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: 29bd65863043a0b44a511502a9c1f525
3
- MonoImporter:
4
- externalObjects: {}
5
- serializedVersion: 2
6
- defaultReferences: []
7
- executionOrder: 0
8
- icon: {instanceID: 0}
9
- userData:
10
- assetBundleName:
11
- assetBundleVariant:
1
+ fileFormatVersion: 2
2
+ guid: 29bd65863043a0b44a511502a9c1f525
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -1,19 +1,19 @@
1
- {
2
- "name": "DREditor.Audio",
3
- "rootNamespace": "",
4
- "references": [
5
- "FMODUnity",
6
- "DREditor",
7
- "Unity.TextMeshPro",
8
- "DREditor.EventObjectServices"
9
- ],
10
- "includePlatforms": [],
11
- "excludePlatforms": [],
12
- "allowUnsafeCode": false,
13
- "overrideReferences": false,
14
- "precompiledReferences": [],
15
- "autoReferenced": true,
16
- "defineConstraints": [],
17
- "versionDefines": [],
18
- "noEngineReferences": false
1
+ {
2
+ "name": "DREditor.Audio",
3
+ "rootNamespace": "",
4
+ "references": [
5
+ "FMODUnity",
6
+ "DREditor",
7
+ "Unity.TextMeshPro",
8
+ "DREditor.EventObjectServices"
9
+ ],
10
+ "includePlatforms": [],
11
+ "excludePlatforms": [],
12
+ "allowUnsafeCode": false,
13
+ "overrideReferences": false,
14
+ "precompiledReferences": [],
15
+ "autoReferenced": true,
16
+ "defineConstraints": [],
17
+ "versionDefines": [],
18
+ "noEngineReferences": false
19
19
  }
@@ -1,7 +1,7 @@
1
- fileFormatVersion: 2
2
- guid: 66016daad370ecc43a511cfd267cafc9
3
- AssemblyDefinitionImporter:
4
- externalObjects: {}
5
- userData:
6
- assetBundleName:
7
- assetBundleVariant:
1
+ fileFormatVersion: 2
2
+ guid: 66016daad370ecc43a511cfd267cafc9
3
+ AssemblyDefinitionImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant: