MCPcopy Create free account
hub / github.com/LabSound/LabSound / dsPointerBetween

Function dsPointerBetween

src/backends/RtAudio/RtAudio.cpp:6040–6046  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6038#endif
6039
6040static inline DWORD dsPointerBetween(DWORD pointer, DWORD laterPointer, DWORD earlierPointer, DWORD bufferSize)
6041{
6042 if (pointer > bufferSize) pointer -= bufferSize;
6043 if (laterPointer < earlierPointer) laterPointer += bufferSize;
6044 if (pointer < earlierPointer) pointer += bufferSize;
6045 return pointer >= earlierPointer && pointer < laterPointer;
6046}
6047
6048// A structure to hold various information related to the DirectSound
6049// API implementation.

Callers 1

callbackEventMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected