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

Method buffer

source/src/openal.cpp:94–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94bool source::buffer(ALuint buf_id)
95{
96 alclearerr();
97#ifdef __APPLE__ // weird bug
98 if (buf_id)
99#endif
100 alSourcei(id, AL_BUFFER, buf_id);
101
102 return !ALERR;
103}
104
105bool source::looping(bool enable)
106{

Callers 2

resetMethod · 0.80
locationMethod · 0.80

Calls 1

alclearerrFunction · 0.85

Tested by

no test coverage detected