Definition at line 47 of file OOSoundSourcePool.m.
◆ selectSlotForPriority:
- (uint8_t) selectSlotForPriority: |
|
(float) | priority |
|
Extends class OOSoundSourcePool.
Definition at line 43 of file OOSoundSourcePool.m.
228 :(float)priority
229{
233
234#define NEXT(x) (((x) + 1) % _count)
235
236 curr = _latest;
238 do
239 {
241 element = &_sources[curr];
242
243 if (element->
source ==
nil || ![element->
source isPlaying])
return curr;
244 else if (element->
priority < priority)
245 {
246 if (element->
expiryTime <= now) expiredLower = curr;
247 else if (curr != _reserved) unexpiredLower = curr;
248 }
250 {
251 expiredEqual = curr;
252 }
254
255 if (expiredLower !=
kNoSlot)
return expiredLower;
256 if (unexpiredLower !=
kNoSlot)
return unexpiredLower;
257 return expiredEqual;
258}
OOTimeAbsolute expiryTime
The documentation for this category was generated from the following file: