MCPcopy Create free account
hub / github.com/LibreVR/Revive / GetState

Method GetState

ReviveXR/HapticsBuffer.cpp:39–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39ovrHapticsPlaybackState HapticsBuffer::GetState()
40{
41 ovrHapticsPlaybackState state = { 0 };
42
43 for (uint8_t i = m_WriteIndex; i != m_ReadIndex; i++)
44 state.RemainingQueueSpace++;
45 state.RemainingQueueSpace++;
46
47 for (uint8_t i = m_ReadIndex; i != m_WriteIndex; i++)
48 state.SamplesQueued++;
49 state.SamplesQueued--;
50
51 return state;
52}

Callers 1

GetVibrationStateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected