[Openal-devel] const vs. non-const ptr's (arrays)
stanev at treyarch.com
Sat Dec 13 18:10:59 PST 2003
Would OpenAL consider changing all functions that update data to
have interfaces which accept const pointers to the data, and not just
As in this function:
ALAPI ALvoid ALAPIENTRY alListenerfv( ALenum param, ALfloat* values );
which should be
ALAPI ALvoid ALAPIENTRY alListenerfv( ALenum param, const ALfloat* values );
mainly because alListenerfv is not expected to modify the "values".
This could give hint to the compiler for more optimizations, and
would solve some C++ problems.
More information about the Openal-devel