MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / dsPointerBetween

Function dsPointerBetween

examples/TinyAudio/RtAudio.cpp:5710–5716  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5708#endif
5709
5710static inline DWORD dsPointerBetween(DWORD pointer, DWORD laterPointer, DWORD earlierPointer, DWORD bufferSize)
5711{
5712 if (pointer > bufferSize) pointer -= bufferSize;
5713 if (laterPointer < earlierPointer) laterPointer += bufferSize;
5714 if (pointer < earlierPointer) pointer += bufferSize;
5715 return pointer >= earlierPointer && pointer < laterPointer;
5716}
5717
5718// A structure to hold various information related to the DirectSound
5719// API implementation.

Callers 1

callbackEventMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected