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

Method unqueueallbuffers

source/src/openal.cpp:119–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119bool source::unqueueallbuffers()
120{
121 alclearerr();
122 ALint queued;
123 alGetSourcei(id, AL_BUFFERS_QUEUED, &queued);
124 ALERR;
125 loopi(queued)
126 {
127 ALuint buffer;
128 alSourceUnqueueBuffers(id, 1, &buffer);
129 }
130 return !ALERR;
131}
132
133bool source::gain(float g)
134{

Callers 1

resetMethod · 0.80

Calls 1

alclearerrFunction · 0.85

Tested by

no test coverage detected