---------------------------------------------------------------------------
| 171 | } |
| 172 | //--------------------------------------------------------------------------- |
| 173 | bool __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 | //--------------------------------------------------------------------------- |
| 188 | void MyPlaySound(AnsiString file) |
| 189 | { |
nothing calls this directly
no outgoing calls
no test coverage detected