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

Method SetKind

engine/PoseidonOpenAL/WaveOAL.cpp:1582–1595  ·  view source on GitHub ↗

Matching DX8 SetKind (soundDX8.cpp:1745-1753): update _volumeAdjust immediately

Source from the content-addressed store, hash-verified

1580 if (_is3D)
1581 Apply3D();
1582}
1583
1584void WaveOAL::SetVolumeAdjust(float volEffect, float volSpeech, float volMusic)
1585{
1586 float vol = volEffect;
1587 if (_kind == WaveMusic)
1588 vol = volMusic;
1589 else if (_kind == WaveSpeech)
1590 vol = volSpeech;
1591 _volumeAdjust = vol;
1592 ApplyVolume();
1593}
1594
1595// Matching DX8 SetKind (soundDX8.cpp:1745-1753): update _volumeAdjust immediately
1596void WaveOAL::SetKind(WaveKind k)
1597{
1598 _kind = k;

Callers 4

StartEAXPreviewMethod · 0.45
StartCategoryPreviewMethod · 0.45
StartDevicePreviewMethod · 0.45
ProcessPreviewMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected