MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / updatePosition

Method updatePosition

Sources/Jazz2/LevelHandler.cpp:92–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90 }
91
92 void AudioBufferPlayerForSplitscreen::updatePosition()
93 {
94 if (state_ != PlayerState::Playing || GetFlags(PlayerFlags::SourceRelative) || GetFlags(PlayerFlags::As2D)) {
95 return;
96 }
97
98 IAudioDevice& device = theServiceLocator().GetAudioDevice();
99 setPositionInternal(getAdjustedPosition(device, position_, false, false));
100 }
101
102 void AudioBufferPlayerForSplitscreen::updateViewports(ArrayView<std::unique_ptr<Rendering::PlayerViewport>> viewports)
103 {

Callers 1

OnEndFrameMethod · 0.80

Calls 1

GetFlagsFunction · 0.85

Tested by

no test coverage detected