MCPcopy Create free account
hub / github.com/assaultcube/AC / loopi

Function loopi

source/src/oggstream.cpp:190–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188 bool active = true;
189 alGetSourcei(src->id, AL_BUFFERS_PROCESSED, &processed);
190 loopi(processed)
191 {
192 ALuint buffer;
193 alSourceUnqueueBuffers(src->id, 1, &buffer);
194 active = stream(buffer);
195 if(active) alSourceQueueBuffers(src->id, 1, &buffer);
196 }
197
198 if(active)
199 {

Callers 2

openMethod · 0.70
streamMethod · 0.70

Calls 1

streamClass · 0.85

Tested by

no test coverage detected