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

Method CreateWave

engine/Poseidon/Audio/Text/SoundSystemText.cpp:54–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54IWave* SoundSystemText::CreateWave(const char* filename, bool is3D, bool prealloc)
55{
56 LOG_DEBUG(Audio, "[AudioText] CreateWave(filename='{}', is3D={}, prealloc={})", filename, is3D, prealloc);
57
58 float duration = GetWaveDuration(filename);
59 WaveText* wave = new WaveText(RString(filename), duration);
60 wave->Set3D(is3D);
61
62 return wave;
63}
64
65void SoundSystemText::SetListener(Vector3Par pos, Vector3Par vel, Vector3Par dir, Vector3Par up)
66{

Callers 3

playMethod · 0.45
OpenMethod · 0.45
SetEnvSoundMethod · 0.45

Calls 2

RStringClass · 0.50
Set3DMethod · 0.45

Tested by

no test coverage detected