net.dreditor.audio 0.0.0-stage → 0.1.6

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/ClearAudioSourceOnTitleScreen.cs +51 -0
  2. package/ClearAudioSourceOnTitleScreen.cs.meta +11 -0
  3. package/CreditsMusic.cs +64 -0
  4. package/CreditsMusic.cs.meta +11 -0
  5. package/CreditsMusicUnity.cs +22 -0
  6. package/CreditsMusicUnity.cs.meta +11 -0
  7. package/DREditor.Audio.asmdef +19 -0
  8. package/DREditor.Audio.asmdef.meta +7 -0
  9. package/EnvironmentSFXMananger.cs +160 -0
  10. package/EnvironmentSFXMananger.cs.meta +11 -0
  11. package/EnvironmentSFXManangerBase.cs +24 -0
  12. package/EnvironmentSFXManangerBase.cs.meta +11 -0
  13. package/Music.cs +27 -0
  14. package/Music.cs.meta +11 -0
  15. package/MusicFMOD.cs +32 -0
  16. package/MusicFMOD.cs.meta +11 -0
  17. package/MusicManager.cs +436 -0
  18. package/MusicManager.cs.meta +11 -0
  19. package/MusicManagerBase.cs +115 -0
  20. package/MusicManagerBase.cs.meta +11 -0
  21. package/MusicSaver.cs +127 -0
  22. package/MusicSaver.cs.meta +11 -0
  23. package/MusicTextHandler.cs +119 -0
  24. package/MusicTextHandler.cs.meta +11 -0
  25. package/OnVoiceLineSettingChanged.cs +69 -0
  26. package/OnVoiceLineSettingChanged.cs.meta +11 -0
  27. package/OptionVolume.cs +76 -0
  28. package/OptionVolume.cs.meta +11 -0
  29. package/PlaySelectAudioOnUIChange.cs +42 -0
  30. package/PlaySelectAudioOnUIChange.cs.meta +11 -0
  31. package/PlaySubmitSFXOnClick.cs +23 -0
  32. package/PlaySubmitSFXOnClick.cs.meta +11 -0
  33. package/Playlist.cs +81 -0
  34. package/Playlist.cs.meta +11 -0
  35. package/PlaylistEditor.cs +358 -0
  36. package/PlaylistEditor.cs.meta +11 -0
  37. package/PlaylistFMOD.cs +39 -0
  38. package/PlaylistFMOD.cs.meta +11 -0
  39. package/SFXManager.cs +348 -0
  40. package/SFXManager.cs.meta +11 -0
  41. package/SFXManagerBase.cs +38 -0
  42. package/SFXManagerBase.cs.meta +11 -0
  43. package/Samples/Audio_Event_Save_Handler.prefab +57 -0
  44. package/Samples/Audio_Event_Save_Handler.prefab.meta +7 -0
  45. package/Samples/Credits_Music_Unity.prefab +66 -0
  46. package/Samples/Credits_Music_Unity.prefab.meta +7 -0
  47. package/Samples/Dialogue_Click_Sound_Player_DRE.prefab +76 -0
  48. package/Samples/Dialogue_Click_Sound_Player_DRE.prefab.meta +7 -0
  49. package/Samples/Environment_SFX_Manager.prefab +146 -0
  50. package/Samples/Environment_SFX_Manager.prefab.meta +7 -0
  51. package/Samples/Environment_SFX_Manager_Shell.prefab +96 -0
  52. package/Samples/Environment_SFX_Manager_Shell.prefab.meta +7 -0
  53. package/Samples/Environment_Source.prefab +130 -0
  54. package/Samples/Environment_Source.prefab.meta +7 -0
  55. package/Samples/Music_Manager.prefab +146 -0
  56. package/Samples/Music_Manager.prefab.meta +7 -0
  57. package/Samples/Music_Manager_Shell.prefab +75 -0
  58. package/Samples/Music_Manager_Shell.prefab.meta +7 -0
  59. package/Samples/Music_Source.prefab +144 -0
  60. package/Samples/Music_Source.prefab.meta +7 -0
  61. package/Samples/On_Voice_Line_Setting_Changed.prefab +53 -0
  62. package/Samples/On_Voice_Line_Setting_Changed.prefab.meta +7 -0
  63. package/Samples/Play_Select_Audio_On_UI_Change.prefab +46 -0
  64. package/Samples/Play_Select_Audio_On_UI_Change.prefab.meta +7 -0
  65. package/Samples/SFX_Manager.prefab +397 -0
  66. package/Samples/SFX_Manager.prefab.meta +7 -0
  67. package/Samples/SFX_Manager_Shell.prefab +53 -0
  68. package/Samples/SFX_Manager_Shell.prefab.meta +7 -0
  69. package/Samples/SFX_Source.prefab +130 -0
  70. package/Samples/SFX_Source.prefab.meta +7 -0
  71. package/Samples/Select_SFX_On_Setting_Changed.prefab +51 -0
  72. package/Samples/Select_SFX_On_Setting_Changed.prefab.meta +7 -0
  73. package/Samples/Sound_Manager.prefab +473 -0
  74. package/Samples/Sound_Manager.prefab.meta +7 -0
  75. package/Samples/Sound_Manager_Events.prefab +261 -0
  76. package/Samples/Sound_Manager_Events.prefab.meta +7 -0
  77. package/Samples/Sound_Manager_Shell.prefab +370 -0
  78. package/Samples/Sound_Manager_Shell.prefab.meta +7 -0
  79. package/Samples/Sound_Player_DRE.prefab +47 -0
  80. package/Samples/Sound_Player_DRE.prefab.meta +7 -0
  81. package/Samples/StopAllAudio.asset +14 -0
  82. package/Samples/StopAllAudio.asset.meta +8 -0
  83. package/Samples/UI_Cancel_Source.prefab +130 -0
  84. package/Samples/UI_Cancel_Source.prefab.meta +7 -0
  85. package/Samples/UI_Select_Source.prefab +130 -0
  86. package/Samples/UI_Select_Source.prefab.meta +7 -0
  87. package/Samples/UI_Submit_Source.prefab +130 -0
  88. package/Samples/UI_Submit_Source.prefab.meta +7 -0
  89. package/Samples/Voice_SFX_Manager.prefab +146 -0
  90. package/Samples/Voice_SFX_Manager.prefab.meta +7 -0
  91. package/Samples/Voice_SFX_Manager_Shell.prefab +49 -0
  92. package/Samples/Voice_SFX_Manager_Shell.prefab.meta +7 -0
  93. package/Samples/Voice_Source.prefab +130 -0
  94. package/Samples/Voice_Source.prefab.meta +7 -0
  95. package/Samples.meta +8 -0
  96. package/SelectSFXOnSceneEvent.cs +22 -0
  97. package/SelectSFXOnSceneEvent.cs.meta +11 -0
  98. package/SoundManager.cs +191 -0
  99. package/SoundManager.cs.meta +11 -0
  100. package/SoundManagerBase.cs +73 -0
  101. package/SoundManagerBase.cs.meta +11 -0
  102. package/SoundPlayerDRE.cs +27 -0
  103. package/SoundPlayerDRE.cs.meta +11 -0
  104. package/SoundPlayerDREUnity.cs +29 -0
  105. package/SoundPlayerDREUnity.cs.meta +11 -0
  106. package/SoundService.cs +11 -0
  107. package/SoundService.cs.meta +11 -0
  108. package/StopEnvAudioToTitle.cs +17 -0
  109. package/StopEnvAudioToTitle.cs.meta +11 -0
  110. package/VOManagerBase.cs +29 -0
  111. package/VOManagerBase.cs.meta +11 -0
  112. package/VoiceSFXManager.cs +105 -0
  113. package/VoiceSFXManager.cs.meta +11 -0
  114. package/package.json +36 -6
  115. package/package.json.meta +7 -0
  116. package/README.md +0 -3
@@ -0,0 +1,105 @@
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using UnityEngine;
3
+
4
+ #if FMOD_UNITY
5
+ using FMODUnity;
6
+ #endif
7
+
8
+ namespace DREditor.Audio
9
+ {
10
+ /// <summary>
11
+ ///
12
+ /// </summary>
13
+ [ClassHeader(nameof(VOManagerBase) +
14
+ "\n\n")]
15
+ public class VoiceSFXManager : VOManagerBase
16
+ {
17
+ #if FMOD_UNITY
18
+ /// <summary>
19
+ ///
20
+ /// </summary>
21
+ [Tooltip("")]
22
+ [SerializeField] protected StudioEventEmitter voiceSFXSource = null;
23
+ #else
24
+ /// <summary>
25
+ ///
26
+ /// </summary>
27
+ [Tooltip("")]
28
+ [SerializeField] protected AudioSource voiceSFXSource = null;
29
+ #endif
30
+
31
+ /// <inheritdoc/>
32
+ protected override void InitializeService()
33
+ {
34
+ base.InitializeService();
35
+ #if FMOD_UNITY
36
+ if (voiceSFXSource == null)
37
+ voiceSFXSource = GetComponentInChildren<StudioEventEmitter>();
38
+ #else
39
+ if (voiceSFXSource == null)
40
+ voiceSFXSource = GetComponentInChildren<AudioSource>();
41
+ #endif
42
+ }
43
+
44
+ /// <inheritdoc/>
45
+ public override void PlayVoiceLine<T>(T name)
46
+ {
47
+ #if FMOD_UNITY
48
+ if (name is string eventName && eventName != null && eventName != "")
49
+ PlaySource(voiceSFXSource, eventName);
50
+ #else
51
+ if (name is AudioClip clip && clip != null)
52
+ PlaySource(voiceSFXSource, clip);
53
+ #endif
54
+ }
55
+
56
+ #if FMOD_UNITY
57
+ /// <summary>
58
+ ///
59
+ /// </summary>
60
+ /// <param name="source"></param>
61
+ /// <param name="eventName"></param>
62
+ protected virtual void PlaySource(StudioEventEmitter source, string eventName)
63
+ {
64
+ if (eventName == "" || source == null)
65
+ return;
66
+
67
+ source.Stop();
68
+
69
+ source.Event = eventName;
70
+
71
+ source.Play();
72
+ }
73
+ #else
74
+ /// <summary>
75
+ ///
76
+ /// </summary>
77
+ /// <param name="source"></param>
78
+ /// <param name="clip"></param>
79
+ protected virtual void PlaySource(AudioSource source, AudioClip clip)
80
+ {
81
+ if (clip == null || source == null)
82
+ return;
83
+
84
+ source.Stop();
85
+
86
+ source.clip = clip;
87
+
88
+ source.Play();
89
+ }
90
+ #endif
91
+
92
+ #if FMOD_UNITY
93
+ /// <inheritdoc/>
94
+ public override bool VoicePlaying() => voiceSFXSource != null && voiceSFXSource.IsPlaying();
95
+ #else
96
+ public override bool VoicePlaying() => voiceSFXSource != null && voiceSFXSource.isPlaying;
97
+ #endif
98
+ /// <inheritdoc/>
99
+ public override void StopVoiceLine()
100
+ {
101
+ if (voiceSFXSource != null)
102
+ voiceSFXSource.Stop();
103
+ }
104
+ }
105
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: b46263e4b80e0e44f983a706ba9f7ef8
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
package/package.json CHANGED
@@ -1,6 +1,36 @@
1
- {
2
- "name": "net.dreditor.audio",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
1
+ {
2
+ "name": "net.dreditor.audio",
3
+ "version": "0.1.6",
4
+ "displayName": "DREditor Audio",
5
+ "description": "The beta for DREditor. A tool to create death game style projects without having to code.",
6
+ "unity": "6000.4",
7
+ "dependencies": {
8
+ "net.dreditor.core": "0.1.6",
9
+ "com.unity.ugui": "2.0.0",
10
+ "net.dreditor.eventobjectservices": "0.1.6"
11
+ },
12
+ "publishConfig": {
13
+ "access": "public"
14
+ },
15
+ "author": {
16
+ "name": "Benjamin \"Sweden\" Jillson",
17
+ "email": "dreditortool@gmail.com",
18
+ "url": "https://dreditor.net"
19
+ },
20
+ "keywords": [
21
+ "editor",
22
+ "tool",
23
+ "dreditor"
24
+ ],
25
+ "samples": [
26
+ {
27
+ "displayName": "Samples",
28
+ "description": "",
29
+ "path": "Samples~"
30
+ }
31
+ ],
32
+ "documentationUrl": "https://dreditor.net",
33
+ "license": "Apache-2.0",
34
+ "licensesUrl": "https://dreditor.net/docs/LICENSE.html",
35
+ "changelogUrl": "https://dreditor.net/docs/CHANGELOG.html"
36
+ }
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: e9197c21e01a53142862e143a10698a0
3
+ TextScriptImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.