MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / ResolvePreviewMusicTrack

Function ResolvePreviewMusicTrack

engine/PoseidonOpenAL/SoundSystemOAL.cpp:42–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42bool ResolvePreviewMusicTrack(const char* entryName, SoundPars& pars)
43{
44 const ParamEntry* preview = PreviewConfig();
45 const ParamEntry* entry = preview ? preview->FindEntry(entryName) : nullptr;
46 if (!entry)
47 return false;
48
49 RString trackName = *entry;
50 return trackName.GetLength() > 0 && FindMusic(trackName, pars) != nullptr && pars.name.GetLength() > 0;
51}
52
53bool ResolvePreviewSoundArray(const char* entryName, SoundPars& pars)
54{

Callers 3

StartCategoryPreviewMethod · 0.85
StartDevicePreviewMethod · 0.85
ProcessPreviewMethod · 0.85

Calls 4

PreviewConfigFunction · 0.85
FindMusicFunction · 0.85
FindEntryMethod · 0.45
GetLengthMethod · 0.45

Tested by

no test coverage detected