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

Method GetState

Revive/HapticsBuffer.cpp:64–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64ovrHapticsPlaybackState HapticsBuffer::GetState()
65{
66 ovrHapticsPlaybackState state = { 0 };
67
68 for (uint8_t i = m_WriteIndex; i != m_ReadIndex; i++)
69 state.RemainingQueueSpace++;
70 state.RemainingQueueSpace++;
71
72 for (uint8_t i = m_ReadIndex; i != m_WriteIndex; i++)
73 state.SamplesQueued++;
74 state.SamplesQueued--;
75
76 return state;
77}

Callers 1

GetVibrationStateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected