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

Method SetPosition

engine/PoseidonOpenAL/WaveOAL.cpp:1597–1603  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1595// Matching DX8 SetKind (soundDX8.cpp:1745-1753): update _volumeAdjust immediately
1596void WaveOAL::SetKind(WaveKind k)
1597{
1598 _kind = k;
1599 if (_sys)
1600 {
1601 float vol = _sys->_volumeAdjustEffect;
1602 if (_kind == WaveMusic)
1603 vol = _sys->_volumeAdjustMusic;
1604 else if (_kind == WaveSpeech)
1605 vol = _sys->_volumeAdjustSpeech;
1606 _volumeAdjust = vol;

Callers 4

RenderSceneMethod · 0.45
StartEAXPreviewMethod · 0.45
StartCategoryPreviewMethod · 0.45
ProcessPreviewMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected