MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / init

Method init

Source/Engine/Audio/AudioClip.cpp:323–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321}
322
323bool AudioClip::init(AssetInitData& initData)
324{
325 // Validate
326 if (initData.CustomData.Length() != sizeof(AudioHeader))
327 {
328 LOG(Warning, "Missing audio data.");
329 return true;
330 }
331
332 // Load header
333 Platform::MemoryCopy(&AudioHeader, initData.CustomData.Get(), sizeof(AudioHeader));
334
335 return false;
336}
337
338Asset::LoadResult AudioClip::load()
339{

Callers 3

InitMethod · 0.45
EnsureCapacityMethod · 0.45
ConvertBasisUniversalMethod · 0.45

Calls 2

LengthMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected