File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -143,6 +143,9 @@ class USoundWave : public UObject // actual parent is USoundBase
143
143
DECLARE_CLASS (USoundWave, UObject);
144
144
public:
145
145
bool bStreaming;
146
+ #if ARK
147
+ bool bReallyUseStreamingReserved;
148
+ #endif
146
149
FByteBulkData RawData;
147
150
FGuid CompressedDataGuid;
148
151
TArray<FSoundFormatData> CompressedFormatData; // FFormatContainer in UE4
@@ -155,12 +158,18 @@ class USoundWave : public UObject // actual parent is USoundBase
155
158
156
159
USoundWave ()
157
160
: bStreaming(false )
161
+ #if ARK
162
+ , bReallyUseStreamingReserved(false )
163
+ #endif
158
164
{}
159
165
160
166
BEGIN_PROP_TABLE
161
167
PROP_INT (NumChannels)
162
168
PROP_INT (SampleRate)
163
169
PROP_BOOL (bStreaming)
170
+ #if ARK
171
+ PROP_BOOL (bReallyUseStreamingReserved) // equivalent of bStreaming in ARK
172
+ #endif
164
173
PROP_DROP (bHasVirtualizeWhenSilent)
165
174
PROP_DROP (bVirtualizeWhenSilent)
166
175
PROP_DROP (Duration)
@@ -173,6 +182,13 @@ class USoundWave : public UObject // actual parent is USoundBase
173
182
174
183
Super::Serialize (Ar);
175
184
185
+ #if ARK
186
+ if (Ar.Game == GAME_Ark)
187
+ {
188
+ bStreaming = bReallyUseStreamingReserved;
189
+ }
190
+ #endif
191
+
176
192
bool bCooked;
177
193
Ar << bCooked;
178
194
@@ -200,6 +216,14 @@ class USoundWave : public UObject // actual parent is USoundBase
200
216
201
217
if (bStreaming)
202
218
{
219
+ #if ARK
220
+ if (Ar.Game == GAME_Ark)
221
+ {
222
+ // another bCooked. this one is relevant for streaming.
223
+ // if negative, there's no data after it, but that won't happen with client assets.
224
+ Ar << bCooked;
225
+ }
226
+ #endif
203
227
int32 NumChunks;
204
228
FName AudioFormat;
205
229
Ar << NumChunks << StreamedFormat;
You can’t perform that action at this time.
0 commit comments