MCPcopy Create free account
hub / github.com/MaxBelkov/visualsyslog / ReadAlmostFree

Method ReadAlmostFree

source/sound.cpp:173–186  ·  view source on GitHub ↗

---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

171}
172//---------------------------------------------------------------------------
173bool __fastcall TSound::ReadAlmostFree(void)
174{
175 bool rv = false;
176 EnterCriticalSection( &busy );
177 if( QueueSize == 0 )
178 rv = true;
179 else if( QueueSize == 1 )
180 {
181 if( Queue[0].Count < 2 )
182 rv = true;
183 }
184 LeaveCriticalSection( &busy );
185 return rv;
186}
187//---------------------------------------------------------------------------
188void MyPlaySound(AnsiString file)
189{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected