-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGameCriAdxAudioSettings.cs
More file actions
220 lines (203 loc) · 7.46 KB
/
Copy pathGameCriAdxAudioSettings.cs
File metadata and controls
220 lines (203 loc) · 7.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
using System.Collections.Generic;
using System.Linq;
using AudioLib.CriAdx;
namespace GameSample.Audio
{
/// <summary>
/// ゲーム内サウンド設定 (CRI固有)
/// </summary>
public class GameCriAdxAudioSettings : IGameAudioSettings
{
/// <summary>
/// SoundEvent名
/// </summary>
public string SoundEventName_BgmSpaceWould => CriAdx.CueName.BgmSpaceWould;
public string SoundEventName_BgmShotThunder => CriAdx.CueName.BgmShotThunder;
public string SoundEventName_BgmAtomChain => CriAdx.CueName.BgmAtomChain;
public string SoundEventName_SeAttack => CriAdx.CueName.SeAttack;
public string SoundEventName_SeMove => CriAdx.CueName.SeMove;
/// <summary>
/// SoundSheet名
/// </summary>
public string SoundSheetName_Bgm => CriAdx.CueSheetName.Bgm;
public string SoundSheetName_Se => CriAdx.CueSheetName.Se;
/// <summary>
/// GameParameter名
/// </summary>
public string GameParameterName_Battle => CriAdx.AisacName.Battle;
/// <summary>
/// ビート同期ラベル名
/// </summary>
public string BeatSyncLabelName_AtomChain => CriAdx.BeatSyncLabelName.AtomChain;
/// <summary>
/// カスタムイベント名
/// </summary>
public string CustomEventName_StartAtomChainMainLoop => CriAdx.EventName.StartAtomChainMainLoop;
/// <summary>
/// CRI固有設定
/// </summary>
public static class CriAdx
{
/// <summary>
/// CueSheet名
/// </summary>
public static class CueSheetName
{
public const string Bgm = "BGM";
public const string BgmBlock = "BGM_Block";
public const string Se = "SE";
}
/// <summary>
/// CueSheet情報
/// </summary>
public static readonly ICriAdxApiService.CueSheetInfo[] CueSheetInfoArray = new []
{
new ICriAdxApiService.CueSheetInfo()
{
Name = CueSheetName.Bgm,
IsLoadOnInitialize = true,
IsExistAwbFile = true,
IsPlayLoop = true,
},
new ICriAdxApiService.CueSheetInfo()
{
Name = CueSheetName.BgmBlock,
IsLoadOnInitialize = true,
IsExistAwbFile = true,
IsPlayLoop = false,
},
new ICriAdxApiService.CueSheetInfo()
{
Name = CueSheetName.Se,
IsLoadOnInitialize = true,
IsExistAwbFile = false,
IsPlayLoop = false,
},
};
/// <summary>
/// Cue名
/// </summary>
public static class CueName
{
public const string BgmSpaceWould = "BGM_SpaceWould";
public const string BgmShotThunder = "BGM_ShotThunder";
public const string BgmMogTheme = "BGM_MogTheme";
public const string BgmAtomChain = "BGM_AtomChain";
public const string SeMove = "SE_Move";
public const string SeAttack = "SE_Attack";
public const string SeRandom = "SE_Random";
}
/// <summary>
/// CueSheetに紐づくCue情報
/// </summary>
public static readonly Dictionary<string, string[]> CueSheetCueInfoDictionary = new ()
{
{
CueSheetName.Bgm,
new[]
{
CueName.BgmSpaceWould,
CueName.BgmShotThunder,
CueName.BgmMogTheme,
}
},
{
CueSheetName.BgmBlock,
new[]
{
CueName.BgmAtomChain,
}
},
{
CueSheetName.Se,
new[]
{
CueName.SeAttack,
CueName.SeMove
}
},
};
/// <summary>
/// Cue名から対象のCueSheet名を取得する
/// </summary>
/// <param name="cueName"></param>
/// <returns></returns>
public static string GetCueSheetName(string cueName)
{
foreach (var soundBankName in CueSheetCueInfoDictionary.Keys)
{
var eventNameArray = CueSheetCueInfoDictionary[soundBankName];
if (eventNameArray.Contains(cueName))
{
return soundBankName;
}
}
UnityEngine.Debug.LogError($"not found cueSheetName by cueName=> {cueName}");
return null;
}
/// <summary>
/// DSPバス名
/// </summary>
public static class BusName
{
public const string Master = "MasterOut";
public const string BgmReverb = "BGMReverb";
public const string BgmDistortion = "BGMDistortion";
public const string SeReverb = "SEReverb";
public const string SeDistortion = "SEDistortion";
}
/// <summary>
/// DSPバス スナップショット名
/// </summary>
public static class BusSnapshotName
{
public const string Normal = "Normal";
public const string BgmReverb = "BGM_Reverb";
public const string BgmDistortion = "BGM_Distortion";
public const string SeReverb = "SE_Reverb";
public const string SeDistortion = "SE_Distortion";
}
/// <summary>
/// カテゴリー名
/// </summary>
public static class CategoryName
{
public const string Bgm = "BGM";
public const string Se = "SE";
}
/// <summary>
/// AISACコントール名
/// </summary>
public static class AisacName
{
public const string Battle = "Battle";
}
/// <summary>
/// イベント名
/// </summary>
public static class EventName
{
public const string StartAtomChainMainLoop = "StartAtomChainMainLoop";
}
/// <summary>
/// BeatSyncラベル名
/// </summary>
public static class BeatSyncLabelName
{
public const string AtomChain = "AtomChainBeatSyncLabel";
}
/// <summary>
/// 初期生成情報
/// </summary>
public static readonly ICriAdxApiService.InitializeSetting InitializeSetting = new()
{
// サービス生成時に設定する
ListenerObject = null,
// ゲームオーディオ設定
AssetFilePath = "Audio/CriAdx",
AcfFileName = "UnityCriSample.acf",
CueSheetInfoArray = CueSheetInfoArray,
};
}
}
}